140 | @endforeach
141 |
142 |
143 |
144 |
--------------------------------------------------------------------------------
/src/resources/views/image-gallery.blade.php-1:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
90 | @if (Route::has('login'))
91 |
92 | @auth
93 |
Home
94 | @else
95 |
Login
96 |
97 | @if (Route::has('register'))
98 |
Register
99 | @endif
100 | @endauth
101 |
102 | @endif
103 |
104 |
105 |
106 | Unsplash Latest Images
107 |
108 |
109 | {{--
--}}
110 |
111 |
112 |
113 | @foreach($images as $image)
114 |
115 |
116 |
117 |
118 |
{{ $image['alt_description'] }}
119 |
120 | @endforeach
121 |
122 |
123 | @if(0)
124 | @foreach($images as $image)
125 |
126 |
127 | {{--
--}}
144 |
145 |
146 |
147 |
148 |
--------------------------------------------------------------------------------
/src/resources/views_/emails/auth/reminder.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Password Reset
8 |
9 |
10 | To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}.
11 | This link will expire in {{ Config::get('auth.reminder.expire', 60) }} minutes.
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/resources/views_/hello.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Laravel PHP Framework
6 |
35 |
36 |
37 |
38 |
39 |
You have arrived.
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/src/resources/views_/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section("content")
4 |
5 |
6 |
7 |
8 |
9 |
51 |
52 | @include('partials/photos', ['photos' => $photos])
53 |
54 |
Load more
55 |
56 |
57 |
58 | @endsection
59 |
60 | @section("scripts")
61 |
98 |
99 | @endsection
100 |
--------------------------------------------------------------------------------
/src/resources/views_/layouts/master.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
500px API
13 |
14 |
15 |
16 |
17 | @yield("styles")
18 |
19 |
20 |
21 |
22 |
23 |
24 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | @yield("content")
50 |
51 |
52 |
53 |
54 |
Copyright © Your Website 2014
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 | @yield("scripts")
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/src/resources/views_/partials/photos.blade.php:
--------------------------------------------------------------------------------
1 |
12 |
13 | @foreach($photos as $photo)
14 |
24 | @endforeach
--------------------------------------------------------------------------------
/src/resources/views_/single.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
8 | @section('styles')
9 |
10 | @endsection
11 |
12 | @section("content")
13 |
14 |
15 |
{{ $photo['name'] }}
16 |
17 | by {{ $photo['user']['username'] }}
18 |
19 |
20 |
21 |
Posted on {{ $photo['created_at'] }}
22 |
23 |
24 |
25 |
26 | @if($photo['description'])
27 |
{{ $photo['description'] }}
28 | @endif
29 |
30 |
31 |
32 |
33 |
34 |
Leave a Comment:
35 | {{ Form::open(['url' => '/photo/comment', 'method' => 'post']) }}
36 |
37 |
38 |
39 |
40 |
Submit
41 | {{ Form::close() }}
42 |
43 |
44 |
45 |
46 | @foreach($comments as $comment)
47 |
73 | @endforeach
74 |
75 |
76 |
77 |
78 |
79 |
80 | @endsection
--------------------------------------------------------------------------------
/src/resources/views_/upload.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section("content")
4 |
5 |
6 | {{ Form::open(['route' => 'photo.upload', 'files' => true]) }}
7 |
8 | {{ Form::label('name', 'Name: ') }}
9 | {{ Form::text('name', null, ['class' => 'form-control']) }}
10 |
11 |
12 |
13 | {{ Form::label('description', 'Description: ') }}
14 | {{ Form::textarea('description', null, ['class' => 'form-control']) }}
15 |
16 |
17 |
18 | {{ Form::label('photo', 'Upload a photo') }}
19 | {{ Form::file('photo', null, ['class' => 'form-control']) }}
20 |
21 |
22 | {{ Form::submit('Upload', ['class' => 'btn btn-primary']) }}
23 | {{ Form::close() }}
24 |
25 |
26 |
27 |
28 | @endsection
29 |
--------------------------------------------------------------------------------
/src/resources/views_/user.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.master')
2 |
3 | @section("content")
4 |
5 |
6 |
7 |
8 |
9 | @include('partials/photos', ['photos' => $photos])
10 |
11 |
12 |
13 |
14 | @endsection
15 |
16 | @section("scripts")
17 |
18 | @endsection
--------------------------------------------------------------------------------
/src/resources/views_original/image-gallery.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Image Gallery Example
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
Laravel - Image Gallery CRUD Example
67 |
68 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 | @if(count($images))
146 |
147 | @foreach($images as $image)
148 |
149 |
174 |
175 | @endforeach
176 |
177 | @endif
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
205 |
206 |
207 |
--------------------------------------------------------------------------------
/src/resources/views_original/welcome.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Laravel
8 |
9 |
10 |
11 |
12 |
13 |
65 |
66 |
67 |
68 | @if (Route::has('login'))
69 |
70 | @auth
71 |
Home
72 | @else
73 |
Login
74 |
75 | @if (Route::has('register'))
76 |
Register
77 | @endif
78 | @endauth
79 |
80 | @endif
81 |
82 |
83 |
84 | Laravel
85 |
86 |
87 |
97 |
98 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/src/routes/api.php:
--------------------------------------------------------------------------------
1 | get('/user', function (Request $request) {
17 | return $request->user();
18 | });
19 |
--------------------------------------------------------------------------------
/src/routes/channels.php:
--------------------------------------------------------------------------------
1 | id === (int) $id;
16 | });
17 |
--------------------------------------------------------------------------------
/src/routes/console.php:
--------------------------------------------------------------------------------
1 | comment(Inspiring::quote());
18 | })->describe('Display an inspiring quote');
19 |
--------------------------------------------------------------------------------
/src/routes/web.php:
--------------------------------------------------------------------------------
1 |
8 | */
9 |
10 | $uri = urldecode(
11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
12 | );
13 |
14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the
15 | // built-in PHP web server. This provides a convenient way to test a Laravel
16 | // application without having installed a "real" web server software here.
17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
18 | return false;
19 | }
20 |
21 | require_once __DIR__.'/public/index.php';
22 |
--------------------------------------------------------------------------------
/src/storage/app/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !public/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/src/storage/app/public/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/src/storage/framework/.gitignore:
--------------------------------------------------------------------------------
1 | config.php
2 | routes.php
3 | schedule-*
4 | compiled.php
5 | services.json
6 | events.scanned.php
7 | routes.scanned.php
8 | down
9 |
--------------------------------------------------------------------------------
/src/storage/framework/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !data/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/src/storage/framework/cache/data/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/src/storage/framework/sessions/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/src/storage/framework/testing/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/src/storage/framework/views/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/src/storage/logs/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/src/tests/Browser/ExampleTest.php:
--------------------------------------------------------------------------------
1 | browse(function (Browser $browser) {
19 | $browser->visit('/')
20 | ->assertTitle('Unsplash Image Gallery Demo');
21 | });
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/tests/Browser/Pages/HomePage.php:
--------------------------------------------------------------------------------
1 | '#selector',
39 | ];
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/tests/Browser/Pages/Page.php:
--------------------------------------------------------------------------------
1 | '#selector',
18 | ];
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/tests/Browser/console/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/src/tests/Browser/screenshots/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/src/tests/CreatesApplication.php:
--------------------------------------------------------------------------------
1 | make(Kernel::class)->bootstrap();
19 |
20 | return $app;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/tests/DuskTestCase.php:
--------------------------------------------------------------------------------
1 | addArguments([
33 | '--disable-gpu',
34 | '--headless',
35 | '--window-size=1920,1080',
36 | ]);
37 |
38 | return RemoteWebDriver::create(
39 | 'http://localhost:9515', DesiredCapabilities::chrome()->setCapability(
40 | ChromeOptions::CAPABILITY, $options
41 | )
42 | );
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/tests/Feature/ExampleTest.php:
--------------------------------------------------------------------------------
1 | get('/');
18 |
19 | $response->assertStatus(200);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/tests/TestCase.php:
--------------------------------------------------------------------------------
1 | assertTrue(true);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/webpack.mix.js:
--------------------------------------------------------------------------------
1 | const mix = require('laravel-mix');
2 |
3 | /*
4 | |--------------------------------------------------------------------------
5 | | Mix Asset Management
6 | |--------------------------------------------------------------------------
7 | |
8 | | Mix provides a clean, fluent API for defining some Webpack build steps
9 | | for your Laravel application. By default, we are compiling the Sass
10 | | file for the application as well as bundling up all the JS files.
11 | |
12 | */
13 |
14 | mix.js('resources/js/app.js', 'public/js')
15 | .sass('resources/sass/app.scss', 'public/css');
16 |
--------------------------------------------------------------------------------