├── .htaccess ├── database ├── seeds │ ├── .gitkeep │ ├── PhotosTableSeeder.php │ ├── UsersTableSeeder.php │ ├── DatabaseSeeder.php │ ├── LinksTableSeeder.php │ ├── SlidesTableSeeder.php │ └── FoldersTableSeeder.php ├── .gitignore ├── migrations │ ├── .gitkeep │ ├── 2017_02_06_230421_create_photos_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2017_02_08_175928_create_links_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2017_02_06_233620_create_slides_table.php │ ├── 2017_02_08_102055_create_folders_table.php │ └── 2017_02_08_102613_create_portfolio_table.php └── factories │ └── ModelFactory.php ├── resources ├── views │ ├── vendor │ │ └── .gitkeep │ ├── components │ │ ├── footer.blade.php │ │ ├── submit.blade.php │ │ ├── debug.blade.php │ │ ├── viewport.blade.php │ │ ├── feedback.blade.php │ │ ├── selectPhoto.blade.php │ │ └── input.blade.php │ ├── admin │ │ ├── hash.blade.php │ │ ├── resources │ │ │ ├── slides │ │ │ │ ├── create.blade.php │ │ │ │ ├── index.blade.php │ │ │ │ └── select.blade.php │ │ │ ├── folders │ │ │ │ ├── add.blade.php │ │ │ │ ├── create.blade.php │ │ │ │ ├── edit.blade.php │ │ │ │ ├── select.blade.php │ │ │ │ └── index.blade.php │ │ │ ├── links │ │ │ │ ├── create.blade.php │ │ │ │ ├── edit.blade.php │ │ │ │ └── index.blade.php │ │ │ ├── photos │ │ │ │ ├── create.blade.php │ │ │ │ └── index.blade.php │ │ │ └── template.blade.php │ │ ├── panel2.blade.php │ │ └── template.blade.php │ ├── pages │ │ ├── error.blade.php │ │ ├── links.blade.php │ │ ├── portfolio.blade.php │ │ ├── home.blade.php │ │ ├── infolder.blade.php │ │ ├── contact.blade.php │ │ └── about.blade.php │ ├── errors │ │ ├── 404.blade.php │ │ ├── 500.blade.php │ │ └── 503.blade.php │ ├── mails │ │ └── contact.blade.php │ ├── home.blade.php │ ├── auth │ │ ├── passwords │ │ │ ├── email.blade.php │ │ │ └── reset.blade.php │ │ ├── login.blade.php │ │ └── register.blade.php │ ├── welcome.blade.php │ └── layouts │ │ └── app.blade.php ├── assets │ ├── sass │ │ ├── laravel │ │ │ ├── app.scss │ │ │ ├── _variables.scss │ │ │ └── app.css │ │ ├── _slideshow.scss │ │ ├── all.scss │ │ ├── _portfolio.scss │ │ ├── _design.scss │ │ ├── _structures.scss │ │ └── admin.scss │ └── js │ │ ├── app.js │ │ ├── components │ │ └── Example.vue │ │ ├── my.js │ │ ├── bootstrap.js │ │ └── admin.js └── lang │ └── en │ ├── pagination.php │ ├── auth.php │ └── passwords.php ├── bootstrap ├── cache │ └── .gitignore ├── autoload.php └── app.php ├── storage ├── debugbar │ └── .gitignore ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── cache │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── public ├── robots.txt ├── favicon.ico ├── favicon.jpg ├── lightGallery │ ├── fonts │ │ ├── lg.eot │ │ ├── lg.ttf │ │ └── lg.woff │ ├── img │ │ ├── loading.gif │ │ ├── video-play.png │ │ ├── vimeo-play.png │ │ └── youtube-play.png │ ├── css │ │ ├── lg-fb-comment-box.min.css │ │ └── lg-fb-comment-box.css │ └── js │ │ ├── lg-hash.min.js │ │ └── lg-autoplay.min.js ├── bootstrap │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ ├── js │ │ └── npm.js │ └── css │ │ ├── bootstrap-reboot.min.css.map │ │ └── bootstrap-reboot.min.css ├── js │ ├── my.js │ └── admin.js ├── .htaccess ├── web.config ├── css │ ├── admin.min.css │ ├── portfolio.css │ ├── admin.css │ ├── all.min.css │ └── all.css.map └── index.php ├── .gitattributes ├── preview.png ├── app ├── Link.php ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── Ajax.php │ │ └── RedirectIfAuthenticated.php │ ├── Controllers │ │ ├── Controller.php │ │ ├── Auth │ │ │ ├── ResetPasswordController.php │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ └── RegisterController.php │ │ ├── ContactController.php │ │ ├── PagesController.php │ │ ├── AdminConsoleController.php │ │ ├── InFolderController.php │ │ ├── LinksController.php │ │ ├── FoldersController.php │ │ └── SlidesController.php │ ├── Requests │ │ ├── ImageRequest.php │ │ ├── LinkRequest.php │ │ ├── SlideRequest.php │ │ ├── ContactRequest.php │ │ ├── InFolderRequest.php │ │ ├── FolderRequest.php │ │ └── PhotoRequest.php │ └── Kernel.php ├── Slide.php ├── User.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ ├── AppServiceProvider.php │ └── RouteServiceProvider.php ├── Mail │ └── ContactMail.php ├── Console │ └── Kernel.php ├── Folder.php ├── Photo.php └── Exceptions │ └── Handler.php ├── .gitignore ├── config ├── images.php ├── image.php ├── compile.php ├── services.php ├── view.php ├── broadcasting.php ├── filesystems.php ├── queue.php ├── cache.php ├── auth.php ├── database.php └── mail.php ├── tests ├── ExampleTest.php └── TestCase.php ├── README.md ├── routes ├── api.php └── console.php ├── server.php ├── phpunit.xml ├── LICENSE ├── package.json ├── composer.json └── artisan /.htaccess: -------------------------------------------------------------------------------- 1 | Deny from All -------------------------------------------------------------------------------- /database/seeds/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /database/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /resources/views/vendor/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /resources/views/components/footer.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/debugbar/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: /admin/ 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | -------------------------------------------------------------------------------- /preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/preview.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/favicon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/favicon.jpg -------------------------------------------------------------------------------- /public/lightGallery/fonts/lg.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/lightGallery/fonts/lg.eot -------------------------------------------------------------------------------- /public/lightGallery/fonts/lg.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/lightGallery/fonts/lg.ttf -------------------------------------------------------------------------------- /public/lightGallery/fonts/lg.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/lightGallery/fonts/lg.woff -------------------------------------------------------------------------------- /public/lightGallery/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/lightGallery/img/loading.gif -------------------------------------------------------------------------------- /public/lightGallery/img/video-play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/lightGallery/img/video-play.png -------------------------------------------------------------------------------- /public/lightGallery/img/vimeo-play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/lightGallery/img/vimeo-play.png -------------------------------------------------------------------------------- /public/lightGallery/img/youtube-play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/lightGallery/img/youtube-play.png -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /public/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /public/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /public/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /public/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abrasseu/toninodemarco-photography/HEAD/public/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /app/Link.php: -------------------------------------------------------------------------------- 1 | Contact me 2 | 3 | {{ Form::open(['action' => 'PagesController@hash']) }} 4 | {{ Form::text('meat', old('meat') , ['required' => true]) }} 5 | {{ Form::submit('Hash it !') }} 6 | {{ Form::close() }} 7 | -------------------------------------------------------------------------------- /resources/views/pages/error.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |

An error occured !

4 |

5 | Go back to the home page. 6 |

7 |
8 |
-------------------------------------------------------------------------------- /resources/assets/sass/laravel/app.scss: -------------------------------------------------------------------------------- 1 | 2 | // Fonts 3 | @import url(https://fonts.googleapis.com/css?family=Raleway:300,400,600); 4 | 5 | // Variables 6 | @import "variables"; 7 | 8 | // Bootstrap 9 | @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; 10 | -------------------------------------------------------------------------------- /public/js/my.js: -------------------------------------------------------------------------------- 1 | $(function(){function t(){var t=$("#cover option:selected, #photo option:selected").data("link");$("#preview").html("")}$("#cover, #photo").change(function(){t()}),t(),$("button:reset").click(function(){$(".btn-select").removeClass("active")})}); -------------------------------------------------------------------------------- /resources/views/errors/404.blade.php: -------------------------------------------------------------------------------- 1 | @extends('template') 2 | 3 | @section('content') 4 |
5 |

Sorry ! Page not found...

6 |

Find your way home !

7 |
8 | 9 | @stop -------------------------------------------------------------------------------- /resources/assets/sass/_slideshow.scss: -------------------------------------------------------------------------------- 1 | #welcome { 2 | z-index: 100; 3 | text-shadow: 1px 1px 5px #000; 4 | } 5 | 6 | .slides { 7 | z-index: 1; 8 | position: absolute; 9 | top: 0; left: 0; 10 | width: 100%; 11 | height: 100%; 12 | overflow: hidden; 13 | background-size: cover; 14 | background-position: center; 15 | } 16 | -------------------------------------------------------------------------------- /resources/views/components/submit.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | @if ($text === 'Update' && isset($modelName) && isset($model)) 4 | Delete 5 | @endif 6 |
-------------------------------------------------------------------------------- /resources/views/errors/500.blade.php: -------------------------------------------------------------------------------- 1 | @extends('template') 2 | 3 | @section('content') 4 |
5 |

Sorry ! Our server has a problem with your request...

6 |

Find your way home !

7 |
8 | 9 | @stop -------------------------------------------------------------------------------- /config/images.php: -------------------------------------------------------------------------------- 1 | 'img/uploads' 14 | 15 | ]; -------------------------------------------------------------------------------- /resources/views/components/debug.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 5 |
{{ $slot }}
6 |
7 | 8 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | delete(); 11 | 12 | for($i = 1; $i <= 20; ++$i) 13 | { 14 | DB::table('photos')->insert([ 15 | 'path' => "img/HD/$i.jpg", 16 | 'caption' => "Photo $i", 17 | ]); 18 | } 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | 5 |

Some friends to visit

6 | 11 | 12 | @endsection 13 | -------------------------------------------------------------------------------- /resources/views/admin/resources/slides/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.resources.template') 2 | 3 | @section('title') 4 | Add a slide 5 | @stop 6 | 7 | 8 | @section('affichage') 9 |
10 | {{ Form::open(['action' => 'SlidesController@store']) }} 11 | 12 | {{ Form::mySelectPhoto('photo', $photos) }} 13 | {{ Form::mySubmit('Add this slide') }} 14 |
15 | 16 | {{ Form::close() }} 17 |
18 | @stop -------------------------------------------------------------------------------- /public/js/admin.js: -------------------------------------------------------------------------------- 1 | $(function(){function t(){var t=$("#cover option:selected, #photo option:selected").data("link");$("#preview").html("")}$("#cover, #photo").change(function(){t()}),t(),$("button:reset").click(function(){$(".btn-select").removeClass("active")}),$(".rank").click(function(t){var e=this.href,c=$($(this).attr("data")).val();$(this).attr("href",e+"/"+c)}),$(".folder-collapser").click(function(t){t.preventDefault(),$($(this).attr("href")).toggle()})}); -------------------------------------------------------------------------------- /database/seeds/UsersTableSeeder.php: -------------------------------------------------------------------------------- 1 | delete(); 15 | 16 | DB::table('users')->insert([ 17 | 'name' => 'Alex', 18 | 'email' => 'alexdrak1@hotmail.fr', 19 | 'password' => bcrypt('azdazd'), 20 | ]); 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tests/ExampleTest.php: -------------------------------------------------------------------------------- 1 | visit('/') 17 | ->see('Laravel'); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /resources/views/mails/contact.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Prise de contact sur mon beau site

8 |

Réception d'une prise de contact avec les éléments suivants :

9 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Dashboard
9 | 10 |
11 | You are logged in! 12 |
13 |
14 |
15 |
16 |
17 | @endsection 18 | -------------------------------------------------------------------------------- /resources/views/components/viewport.blade.php: -------------------------------------------------------------------------------- 1 |

10 | xs 11 | sm 12 | md 13 | lg 14 | xl 15 |

16 | -------------------------------------------------------------------------------- /resources/views/components/feedback.blade.php: -------------------------------------------------------------------------------- 1 | @if(session()->has('success') || session()->has('error')) 2 |
3 | 4 | @if (session()->has('success')) 5 | 8 | @endif 9 | 10 | @if (session()->has('error')) 11 | 14 | @endif 15 | 16 |
17 | @endif -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 15 | $this->call(PhotosTableSeeder::class); 16 | $this->call(SlidesTableSeeder::class); 17 | $this->call(FoldersTableSeeder::class); 18 | $this->call(LinksTableSeeder::class); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /public/bootstrap/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Tonino De Marco's website 2 | 3 | This is the code of Tonino De Marco's portfolio. 4 | Tonino is a French photographer passionate about wildlife, see his work here : 5 | https://www.toninodemarco-photography.com/ 6 | 7 | 8 | 9 | ![Preview](./preview.png) 10 | 11 | 12 | 13 | This website is built with [Laravel 5](https://laravel.com/), [Bootstrap 4](https://getbootstrap.com/) and [Lightcase.js](http://cornel.bopp-art.com/lightcase/documentation/), maintained and hosted by [Alexandre Brasseur](https://www.linkedin.com/in/alexandre-brasseur/). -------------------------------------------------------------------------------- /app/Http/Middleware/Ajax.php: -------------------------------------------------------------------------------- 1 | ajax()) 19 | { 20 | if (Session::token() === Input::get( '_token' )) { 21 | return $next($request); 22 | } 23 | 24 | abort(401); 25 | } 26 | 27 | abort(404); 28 | } 29 | -------------------------------------------------------------------------------- /app/Slide.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\Photo'); 16 | } 17 | 18 | protected static function boot() { 19 | parent::boot(); 20 | static::addGlobalScope('orderAndPhoto', function (Builder $builder) { 21 | $builder->orderBy('order');//->with('photo'); 22 | }); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /database/seeds/LinksTableSeeder.php: -------------------------------------------------------------------------------- 1 | delete(); 15 | 16 | for($i = 1; $i <= 5; ++$i) 17 | { 18 | DB::table('links')->insert([ 19 | 'link' => route("portfolio", ['id' => $i ]), 20 | 'caption' => "My portfolio number $i", 21 | // 'order' => $i 22 | ]); 23 | } 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /resources/views/admin/resources/folders/add.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.resources.template') 2 | 3 | @section('title') 4 | Add a photo to the folder '{{ $folder->name }}' 5 | @stop 6 | 7 | @section('affichage') 8 | 9 |
10 | {{ Form::open(['action' => ['InFolderController@attach', $folder]]) }} 11 | {{ method_field('PUT') }} 12 | 13 | {{ Form::mySelectPhoto('photo', $photos) }} 14 | {{ Form::mySubmit('Add this photo to the folder') }} 15 |
16 | 17 | {{ Form::close() }} 18 |
19 | 20 | @endsection -------------------------------------------------------------------------------- /resources/views/admin/resources/folders/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.resources.template') 2 | 3 | @section('title') 4 | Create a folder 5 | @stop 6 | 7 | @section('affichage') 8 | 9 |
10 | {{ Form::open(['action' => 'FoldersController@store']) }} 11 | 12 | {{ Form::myInput('name', 'text', 'Name', 'My folder', null, 'autofocus') }} 13 | {{ Form::mySelectPhoto('cover', $photos) }} 14 | {{ Form::mySubmit('Create this folder') }} 15 |
16 | 17 | {{ Form::close() }} 18 |
19 | 20 | @endsection 21 | 22 | -------------------------------------------------------------------------------- /resources/views/admin/resources/links/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.resources.template') 2 | 3 | @section('title') 4 | Create a link 5 | @stop 6 | 7 | @section('affichage') 8 | 9 |
10 | {{ Form::open(['action' => 'LinksController@store']) }} 11 | {{ Form::myInput('caption', 'text', 'Caption', 'My link', null, 'autofocus') }} 12 | {{ Form::myInput('link', 'text', 'Link', 'http://www.website.com') }} 13 | 14 |
15 | 16 |
17 | {{ Form::close() }} 18 |
19 | 20 | @endsection -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | user(); 18 | // })->middleware('auth:api'); 19 | 20 | -------------------------------------------------------------------------------- /resources/views/admin/resources/links/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.resources.template') 2 | 3 | @section('title') 4 | Edit link {{ $link->id }} 5 | @stop 6 | 7 | @section('affichage') 8 | 9 |
10 | {{ Form::open(['action' => ['LinksController@update', $link]]) }} 11 | {{ method_field('PUT') }} 12 | {{ Form::myInput('caption', 'text', 'Caption', 'My link', $link->caption, 'autofocus') }} 13 | {{ Form::myInput('link', 'text', 'Link', 'http://www.website.com', $link->link) }} 14 | {{ Form::mySubmit('Update', 'links', $link) }} 15 | {{ Form::close() }} 16 |
17 | 18 | @endsection -------------------------------------------------------------------------------- /resources/views/admin/resources/photos/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.resources.template') 2 | 3 | @section('title') 4 | Upload a photo 5 | @stop 6 | 7 | @section('affichage') 8 | 9 | 10 |
11 | {{ Form::open(['action' => 'PhotosController@store', 'files' => true]) }} 12 | 13 | {{ Form::myInput('photo', 'file', 'Photo', null, false, 'multiple') }} 14 | {{ Form::myInput('caption', 'text', 'Caption', 'My photo') }} 15 | 16 |
17 | 18 |
19 | {{ Form::close() }} 20 |
21 | 22 | @endsection -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 18 | })->describe('Display an inspiring quote'); 19 | -------------------------------------------------------------------------------- /config/image.php: -------------------------------------------------------------------------------- 1 | 'gd' 19 | // 'driver' => 'imagick' 20 | 21 | ); 22 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | id }} 5 | @stop 6 | 7 | @section('affichage') 8 | 9 |
10 | {{ Form::open(['action' => ['FoldersController@update', $folder]]) }} 11 | {{ method_field('PUT') }} 12 | 13 | {{ Form::myInput('name', 'text', 'Name', 'My folder', $folder->name, 'autofocus') }} 14 | {{ Form::mySelectPhoto('cover', $photos, $folder) }} 15 | {{ Form::mySubmit('Update', 'folders', $folder) }} 16 |
17 | 18 | {{ Form::close() }} 19 |
20 | 21 | @endsection -------------------------------------------------------------------------------- /server.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 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | make(Illuminate\Contracts\Console\Kernel::class)->bootstrap(); 22 | 23 | return $app; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/Http/Requests/ImageRequest.php: -------------------------------------------------------------------------------- 1 | 'required|image' 28 | ]; 29 | } 30 | } -------------------------------------------------------------------------------- /app/Http/Requests/LinkRequest.php: -------------------------------------------------------------------------------- 1 | 'required|string|max:255', 28 | 'link' => 'required|url|max:255|unique:links', 29 | ]; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('/home'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Http/Requests/SlideRequest.php: -------------------------------------------------------------------------------- 1 | 'integer|exists:photos,id', 28 | ]; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /resources/assets/js/app.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * First we will load all of this project's JavaScript dependencies which 4 | * include Vue and Vue Resource. This gives a great starting point for 5 | * building robust, powerful web applications using Vue and Laravel. 6 | */ 7 | 8 | require('./bootstrap'); 9 | 10 | /** 11 | * Next, we will create a fresh Vue application instance and attach it to 12 | * the body of the page. From here, you may begin adding components to 13 | * the application, or feel free to tweak this setup for your needs. 14 | */ 15 | 16 | Vue.component('example', require('./components/Example.vue')); 17 | 18 | const app = new Vue({ 19 | el: '#app' 20 | }); 21 | -------------------------------------------------------------------------------- /app/Http/Requests/ContactRequest.php: -------------------------------------------------------------------------------- 1 | 'required|between:2,30|string', 28 | 'email' => 'required|email', 29 | 'texte' => 'required|max:300' 30 | ]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | id === (int) $userId; 24 | }); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Http/Requests/InFolderRequest.php: -------------------------------------------------------------------------------- 1 | 'required|integer|exists:photos,id', 28 | ]; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /resources/assets/js/components/Example.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Http/Requests/FolderRequest.php: -------------------------------------------------------------------------------- 1 | 'required|string|max:255', 28 | 'cover' => 'integer|exists:photos,id', 29 | ]; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /resources/views/admin/resources/template.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.template') 2 | 3 | @section('content') 4 | 5 | @yield('form') 6 |
7 |
8 |

9 | @yield('title') 10 |

11 |
12 | {{-- Controls --}} 13 | {{-- TODO hidden si pas de controls -> section puis component ? --}} 14 |
15 |
16 | @yield('controls') 17 |
18 |
19 |
20 | 21 | {{-- Mobile Controls --}} 22 |
23 | @yield('controls') 24 |
25 | 26 | @yield('affichage') 27 | 28 | @endsection -------------------------------------------------------------------------------- /database/seeds/SlidesTableSeeder.php: -------------------------------------------------------------------------------- 1 | delete(); 14 | 15 | for($i = 2; $i < 10; ++$i) 16 | { 17 | DB::table('slides')->insert([ 18 | 'photo_id' => $photos[$i]->id, 19 | 'order' => $i 20 | ]); 21 | } 22 | 23 | 24 | // factory(App\Slide::class, 5)->create()->each(function ($slide) { 25 | // $slide->photo()->save(factory(App\Photo::class)->make()); 26 | // }); 27 | } 28 | 29 | 30 | } -------------------------------------------------------------------------------- /database/migrations/2017_02_06_230421_create_photos_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('path')->unique(); 19 | $table->string('caption')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('photos'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'App\Listeners\EventListener', 18 | ], 19 | ]; 20 | 21 | /** 22 | * Register any events for your application. 23 | * 24 | * @return void 25 | */ 26 | public function boot() 27 | { 28 | parent::boot(); 29 | 30 | // 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Requests/PhotoRequest.php: -------------------------------------------------------------------------------- 1 | 'required|string|max:255', 28 | 'photo.*' => 'required|image', 29 | 'photo' => 'required', 30 | ]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /resources/views/components/selectPhoto.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 10 | {!! $errors->first('{{ $name }}', '') !!} 11 |
12 |
-------------------------------------------------------------------------------- /resources/views/pages/portfolio.blade.php: -------------------------------------------------------------------------------- 1 | @extends ('template') 2 | 3 | @section('style') 4 | {{ HTML::style('css/portfolio.css') }} 5 | @endsection 6 | 7 | @section('content') 8 |
9 |

My Portfolio

10 |
11 | @foreach($folders as $folder) 12 | id) }}' 14 | title='Open {{ $folder->name }}'> 15 | {{--
--}} 16 | {{ $folder->name }} 17 |

{{ $folder->name }}

18 |
19 | @endforeach 20 |
21 |
22 | @endsection 23 | -------------------------------------------------------------------------------- /database/factories/ModelFactory.php: -------------------------------------------------------------------------------- 1 | define(App\User::class, function (Faker\Generator $faker) { 15 | static $password; 16 | 17 | return [ 18 | 'name' => $faker->name, 19 | 'email' => $faker->unique()->safeEmail, 20 | 'password' => $password ?: $password = bcrypt('secret'), 21 | 'remember_token' => str_random(10), 22 | ]; 23 | }); 24 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | Allow from All 2 | 3 | 4 | 5 | Options -MultiViews 6 | 7 | 8 | RewriteEngine On 9 | 10 | # HTTPS Redirection 11 | # RewriteCond %{SERVER_PORT} 80 12 | # RewriteRule ^(.*)$ https://www.toninodemarco-photography.com/$1 [R,L] 13 | 14 | # Redirect Trailing Slashes If Not A Folder... 15 | RewriteCond %{REQUEST_FILENAME} !-d 16 | RewriteRule ^(.*)/$ /$1 [L,R=301] 17 | 18 | # Handle Front Controller... 19 | RewriteCond %{REQUEST_FILENAME} !-d 20 | RewriteCond %{REQUEST_FILENAME} !-f 21 | RewriteRule ^ index.php [L] 22 | 23 | # Handle Authorization Header 24 | RewriteCond %{HTTP:Authorization} . 25 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 26 | 27 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token')->index(); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::drop('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Passwords must be at least six characters and match the confirmation.', 17 | 'reset' => 'Your password has been reset!', 18 | 'sent' => 'We have e-mailed your password reset link!', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that e-mail address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /database/migrations/2017_02_08_175928_create_links_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->integer('order')->unsigned()->default(99)->index(); 19 | $table->string('link')->unique(); 20 | $table->string('caption'); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | * 27 | * @return void 28 | */ 29 | public function down() 30 | { 31 | Schema::dropIfExists('links'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /resources/assets/sass/all.scss: -------------------------------------------------------------------------------- 1 | // FONT 2 | @import 'https://fonts.googleapis.com/css?family=Catamaran:200'; 3 | $font-thin: 200; 4 | $font-normal: 400; 5 | $font-bold: 600; 6 | 7 | // COLORS 8 | $color-light: #fff; 9 | $color-dark: #111; 10 | $color-darker: #000; 11 | $color-background: #1E1E1E; 12 | $color-lightgrey: #888; 13 | 14 | // MEDIA QUERIES 15 | $mq-max-xs: 'max-width: 355px'; 16 | $mq-max-sm: 'max-width: 575px'; 17 | $mq-min-sm: 'min-width: 576px'; 18 | $mq-min-md: 'min-width: 768px'; 19 | $mq-min-lg: 'min-width: 992px'; 20 | $mq-min-xl: 'min-width: 1200px'; 21 | 22 | 23 | @import 'structures'; 24 | @import 'design'; 25 | @import 'slideshow'; 26 | @import 'portfolio'; 27 | 28 | /* =============== TEST =============== */ 29 | /* 30 | .pop-cookie { 31 | z-index: 1500; 32 | position: fixed; 33 | top: 84px; 34 | right: 0; 35 | max-width: 300px; 36 | max-height: 60px; 37 | } 38 | 39 | /**/ 40 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->string('password'); 21 | $table->rememberToken(); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::drop('users'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Mail/ContactMail.php: -------------------------------------------------------------------------------- 1 | order = $order; 22 | } 23 | 24 | /** 25 | * Build the message. 26 | * 27 | * @return $this 28 | */ 29 | public function build() 30 | { 31 | return $this->view('mail_contact.blade.php') 32 | ->with([ 33 | 'name' => $this->order->name, 34 | 'mail' => $this->order->mail, 35 | 'texte' => $this->order->texte, 36 | ]); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire') 28 | // ->hourly(); 29 | } 30 | 31 | /** 32 | * Register the Closure based commands for the application. 33 | * 34 | * @return void 35 | */ 36 | protected function commands() 37 | { 38 | require base_path('routes/console.php'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /resources/assets/sass/laravel/_variables.scss: -------------------------------------------------------------------------------- 1 | 2 | // Body 3 | $body-bg: #f5f8fa; 4 | 5 | // Borders 6 | $laravel-border-color: darken($body-bg, 10%); 7 | $list-group-border: $laravel-border-color; 8 | $navbar-default-border: $laravel-border-color; 9 | $panel-default-border: $laravel-border-color; 10 | $panel-inner-border: $laravel-border-color; 11 | 12 | // Brands 13 | $brand-primary: #3097D1; 14 | $brand-info: #8eb4cb; 15 | $brand-success: #2ab27b; 16 | $brand-warning: #cbb956; 17 | $brand-danger: #bf5329; 18 | 19 | // Typography 20 | $font-family-sans-serif: "Raleway", sans-serif; 21 | $font-size-base: 14px; 22 | $line-height-base: 1.6; 23 | $text-color: #636b6f; 24 | 25 | // Navbar 26 | $navbar-default-bg: #fff; 27 | 28 | // Buttons 29 | $btn-default-color: $text-color; 30 | 31 | // Inputs 32 | $input-border: lighten($text-color, 40%); 33 | $input-border-focus: lighten($brand-primary, 25%); 34 | $input-color-placeholder: lighten($text-color, 30%); 35 | 36 | // Panels 37 | $panel-default-heading-bg: #fff; 38 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Folder.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\Photo'); 15 | } 16 | public function photos() { 17 | return $this->belongsToMany('App\Photo', 'portfolio', 'folder_id', 'photo_id')->orderBy('order'); 18 | } 19 | 20 | public function scopeHasPhotos($query) 21 | { 22 | // return $this->photos->isEmpty(); 23 | return $query->whereExists(function ($query) { 24 | $query->select(\DB::raw(1)) 25 | ->from('portfolio') 26 | ->whereRaw('portfolio.folder_id = folders.id'); 27 | }); 28 | } 29 | 30 | protected static function boot() { 31 | parent::boot(); 32 | static::addGlobalScope('orderAndPhotos', function (Builder $builder) { 33 | $builder->orderBy('order');//->with('photos'); 34 | }); 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /resources/views/admin/resources/photos/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.resources.template') 2 | 3 | @section('title') 4 | All your photos {{ $photos->count() }} 5 | @stop 6 | 7 | @section('controls') 8 | Upload a photo 9 | @stop 10 | 11 | @section('affichage') 12 |
13 | 14 | @foreach ($photos as $photo) 15 |
16 | 17 | 18 | 19 |
20 |

{{ $photo->caption, 'No title'}}

21 |
22 | 26 |
27 | @endforeach 28 | 29 |
30 | @endsection -------------------------------------------------------------------------------- /public/lightGallery/css/lg-fb-comment-box.min.css: -------------------------------------------------------------------------------- 1 | .lg-outer.fb-comments .fb-comments{height:100%;overflow-y:auto;position:absolute;right:0;top:0;width:420px;z-index:99999;background:url(../img/loading.gif) center center no-repeat #fff}.lg-outer.fb-comments .fb-comments.fb_iframe_widget{background-image:none}.lg-outer.fb-comments .fb-comments.fb_iframe_widget.fb_iframe_widget_loader{background:url(../img/loading.gif) center center no-repeat #fff}.lg-outer.fb-comments .lg-toolbar{right:420px;width:auto}.lg-outer.fb-comments .lg-actions .lg-next{right:420px}.lg-outer.fb-comments .lg-item,.lg-outer.fb-comments .lg-item.lg-complete .lg-img-wrap,.lg-outer.fb-comments .lg-item.lg-complete .lg-video-cont{background-image:none}.lg-outer.fb-comments .lg-img-wrap,.lg-outer.fb-comments .lg-video-cont{padding-right:400px!important;background:url(../img/loading.gif) center center no-repeat;background-position:calc((100% - 400px)/ 2) center}.lg-outer.fb-comments .lg-sub-html{padding:0;position:static}.lg-outer.fb-comments .lg-video-cont{max-width:1250px!important} -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /resources/views/admin/resources/slides/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.resources.template') 2 | 3 | @section('title') 4 | All your slides {{ $slides->count() }} 5 | @stop 6 | 7 | 8 | @section('controls') 9 | Select all 10 | Add a slide 11 | @stop 12 | 13 | 14 | @section('affichage') 15 | 16 |
17 | @foreach ($slides as $slide) 18 |
19 | 20 |
21 |

{{ $slide->photo->caption, 'No title'}}

22 |
23 | 27 |
28 | @endforeach 29 |
30 | 31 | @stop -------------------------------------------------------------------------------- /app/Http/Controllers/ContactController.php: -------------------------------------------------------------------------------- 1 | get('name')."\nMail : ".$request->get('email')."\n".$request->get('texte')."\n"; 20 | Storage::append(storage_path('logs\mails.log'), $text); 21 | 22 | // TODO + text 23 | 24 | Mail::send('mails.contact', $request->input(), function ($message) { 25 | $message->to('alexdrak1@hotmail.fr'); 26 | // $message->subject('Nouveau contact sur votre site'); 27 | $message->subject('Contact - ' . $request->get('name') . ' vous a contacté'); 28 | }); 29 | 30 | 31 | $request->session()->flash('fbContact', 'Envoi réussi !'); 32 | 33 | return view('pages/contact'); 34 | } 35 | 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | share(compact('routes', 'adminRoutes')); 20 | 21 | // Components Form 22 | \Form::component('myInput', 'components.input', ['name', 'type', 'label' => 'Label', 'placeholder' => null, 'value' => false, 'options' => null]); 23 | \Form::component('mySubmit', 'components.submit', ['text', 'modelName' => null, 'model' => null]); 24 | \Form::component('mySelectPhoto', 'components.selectPhoto', ['name', 'photos', 'model' => null]); 25 | 26 | } 27 | 28 | /** 29 | * Register any application services. 30 | * 31 | * @return void 32 | */ 33 | public function register() 34 | { 35 | // 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /database/migrations/2017_02_06_233620_create_slides_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->integer('order')->unsigned()->default(99)->index(); 19 | $table->integer('photo_id')->unsigned()->unique()->index(); 20 | $table->foreign('photo_id') 21 | ->references('id') 22 | ->on('photos') 23 | ->onDelete('cascade') 24 | ->onUpdate('cascade'); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::dropIfExists('slides'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /resources/views/components/input.blade.php: -------------------------------------------------------------------------------- 1 | @php 2 | $newName = $name.($type==='file' && (strpos($options, 'multiple') !== false) ? '[]' : '' ); 3 | @endphp 4 | 5 |
6 | 7 |
8 | @if($type=='textarea') 9 | 10 | @else 11 | 12 | @endif 13 | @if ($newName != $name) 14 | @foreach ($errors->all() as $message) 15 | 16 | @endforeach 17 | @else 18 | @foreach ($errors->get($name) as $message) 19 | 20 | @endforeach 21 | @endif 22 |
23 |
-------------------------------------------------------------------------------- /database/seeds/FoldersTableSeeder.php: -------------------------------------------------------------------------------- 1 | delete(); 17 | for($i = 1; $i <= 6; ++$i) 18 | { 19 | DB::table('folders')->insert([ 20 | 'name' => "Folder $i", 21 | 'cover_id' => $photos[$i]->id, 22 | 'order' => $i 23 | ]); 24 | } 25 | 26 | $folders = App\Folder::all()->pluck('id')->toArray(); 27 | 28 | DB::table('portfolio')->delete(); 29 | for($i = 0; $i < 20; ++$i) 30 | { 31 | DB::table('portfolio')->insert([ 32 | 'folder_id' => $folders[array_rand($folders)], 33 | 'photo_id' => $photos[$i]->id, 34 | 'order' => $i 35 | ]); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /config/compile.php: -------------------------------------------------------------------------------- 1 | [ 17 | // 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled File Providers 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may list service providers which define a "compiles" function 26 | | that returns additional files that should be compiled, providing an 27 | | easy way to get common files from any packages you are utilizing. 28 | | 29 | */ 30 | 31 | 'providers' => [ 32 | // 33 | ], 34 | 35 | ]; 36 | -------------------------------------------------------------------------------- /public/css/admin.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:70px;padding-bottom:60px;background-color:#e5e5e5}.contour{padding:20px 30px;border:1px solid #333;border-radius:5px}.thumb{max-width:100px;max-height:60px}.container-fit{max-width:600px;margin-right:auto;margin-left:auto}.card-check{position:relative!important;display:inline-block!important}.navbar{-webkit-box-shadow:0 0 20px 1px;box-shadow:0 0 20px 1px}.shadow{-webkit-box-shadow:0 3px 5px;box-shadow:0 3px 5px}.shadow:hover{-webkit-box-shadow:0 3px 10px;box-shadow:0 3px 10px}.fond-blanc{background-color:#eee}.absolute{position:absolute}.center-block{display:block;margin-right:auto!important;margin-left:auto!important}.table-bordered,.table-bordered td,.table-bordered th{border:1px solid #aaa!important}.center-table,.center-table td,.center-table th{text-align:center!important;vertical-align:middle!important}.tr-folder:not(:first-child){border-top:2px solid #006eb1}.tr-folder:not(:first-child):last-child{border-bottom:2px solid #006eb1}input[type=number]{width:58px;text-align:center}.btn-select{padding:0}.btn-select.active .card{background-color:#5cb85c}.btn-select .card:hover{-webkit-box-shadow:0 0 10px;box-shadow:0 0 10px} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Alexandre Brasseur 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest', ['except' => 'logout']); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | ], 21 | 22 | 'ses' => [ 23 | 'key' => env('SES_KEY'), 24 | 'secret' => env('SES_SECRET'), 25 | 'region' => 'us-east-1', 26 | ], 27 | 28 | 'sparkpost' => [ 29 | 'secret' => env('SPARKPOST_SECRET'), 30 | ], 31 | 32 | 'stripe' => [ 33 | 'model' => App\User::class, 34 | 'key' => env('STRIPE_KEY'), 35 | 'secret' => env('STRIPE_SECRET'), 36 | ], 37 | 38 | ]; 39 | -------------------------------------------------------------------------------- /database/migrations/2017_02_08_102055_create_folders_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->integer('order')->unsigned()->default(99)->index(); 19 | $table->string('name', 100); 20 | $table->integer('cover_id')->unsigned()->nullable()->index(); 21 | $table->foreign('cover_id') 22 | ->references('id') 23 | ->on('photos') 24 | ->onDelete('cascade') 25 | ->onUpdate('cascade'); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('folders'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /resources/views/admin/panel2.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.template') 2 | 3 | @section('content') 4 | 5 |
6 |

Dashboard

7 |

Welcome to the admin panel !

8 |
9 |
10 | 11 |
12 |

Here is some information :

13 |
    14 |
  • You have uploaded {{ $photos->count() }} photos
  • 15 |
  • You have created {{ $folders->count() }} folders
  • 16 |
  • You have selected {{ $slides->count() }} slides
  • 17 |
  • You have put forward {{ $links->count() }} links
  • 18 |
19 |
20 | 21 |
22 |

Some more :

23 |
    24 |
  • 25 |
  • 26 |
  • 27 |
  • 28 |
29 |
30 | 31 |
32 |

I said MOAR :

33 |
    34 |
  • 35 |
  • 36 |
  • 37 |
  • 38 |
39 |
40 | 41 |
42 |
43 | 44 | @stop -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.17", 14 | "bootstrap-sass": "^3.3.7", 15 | "cross-env": "^5.1", 16 | "jquery": "^3.2", 17 | "laravel-mix": "^1.0", 18 | "lodash": "^4.17.4", 19 | "vue": "^2.5.7" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /bootstrap/autoload.php: -------------------------------------------------------------------------------- 1 | 6 |
7 |
8 | {{--
--}} 9 |

Welcome

10 | Explore the portfolio → 11 | {{--
--}} 12 |
13 | 14 |
15 | @foreach ($slides as $slide) 16 | {{-- {{ HTML::image($slide->photo->path, null, ['class' => 'slides']) }} --}} 17 |
18 | {{-- {{ $slide->photo->caption }} --}} 19 | @endforeach 20 |
21 |
22 | 23 | @endsection 24 | 25 | @section('scripts') 26 | @parent 27 | 28 | 29 | 30 | 38 | @endsection -------------------------------------------------------------------------------- /resources/views/errors/503.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Be right back. 5 | 6 | 7 | 8 | 39 | 40 | 41 |
42 |
43 |
Be right back.
44 |
45 |
46 | 47 | 48 | -------------------------------------------------------------------------------- /public/lightGallery/js/lg-hash.min.js: -------------------------------------------------------------------------------- 1 | /*! lg-hash - v1.0.2 - 2017-06-03 2 | * http://sachinchoolur.github.io/lightGallery 3 | * Copyright (c) 2017 Sachin N; Licensed GPLv3 */ 4 | !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){!function(){"use strict";var b={hash:!0},c=function(c){return this.core=a(c).data("lightGallery"),this.core.s=a.extend({},b,this.core.s),this.core.s.hash&&(this.oldHash=window.location.hash,this.init()),this};c.prototype.init=function(){var b,c=this;c.core.$el.on("onAfterSlide.lg.tm",function(a,b,d){history.replaceState?history.replaceState(null,null,"#lg="+c.core.s.galleryId+"&slide="+d):window.location.hash="lg="+c.core.s.galleryId+"&slide="+d}),a(window).on("hashchange.lg.hash",function(){b=window.location.hash;var a=parseInt(b.split("&slide=")[1],10);b.indexOf("lg="+c.core.s.galleryId)>-1?c.core.slide(a,!1,!1):c.core.lGalleryOn&&c.core.destroy()})},c.prototype.destroy=function(){this.core.s.hash&&(this.oldHash&&this.oldHash.indexOf("lg="+this.core.s.galleryId)<0?history.replaceState?history.replaceState(null,null,this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash="",this.core.$el.off(".lg.hash"))},a.fn.lightGallery.modules.hash=c}()}); -------------------------------------------------------------------------------- /resources/views/admin/resources/links/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.resources.template') 2 | 3 | @section('title') 4 | All your links {{ $links->count() }} 5 | @stop 6 | 7 | @section('controls') 8 | Add a new link 9 | @stop 10 | 11 | 12 | @section('affichage') 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | @foreach ($links as $link) 27 | 28 | 29 | 30 | 31 | 35 | 36 | @endforeach 37 | 38 | 39 | 42 | 43 | 44 |
ID / OrderCaptionLinkControls
{{ $link->id }}{{ $link->caption }}{{ $link->link }} 32 | Modify 33 | Delete 34 |
40 | Add a new link 41 |
45 |
46 | 47 | @endsection -------------------------------------------------------------------------------- /database/migrations/2017_02_08_102613_create_portfolio_table.php: -------------------------------------------------------------------------------- 1 | integer('order')->unsigned()->default(99)->index(); 18 | 19 | $table->integer('folder_id')->unsigned(); 20 | $table->foreign('folder_id') 21 | ->references('id') 22 | ->on('folders') 23 | ->onDelete('cascade') 24 | ->onUpdate('cascade'); 25 | 26 | $table->integer('photo_id')->unsigned(); 27 | $table->foreign('photo_id') 28 | ->references('id') 29 | ->on('photos') 30 | ->onDelete('cascade') 31 | ->onUpdate('cascade'); 32 | 33 | $table->primary(['folder_id', 'photo_id'])->unique()->index(); 34 | }); 35 | } 36 | 37 | /** 38 | * Reverse the migrations. 39 | * 40 | * @return void 41 | */ 42 | public function down() 43 | { 44 | Schema::dropIfExists('portfolio'); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /resources/views/admin/resources/slides/select.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.resources.template') 2 | 3 | @section('title') 4 | Choose all slides 5 | @endsection 6 | 7 | @section('form') 8 | {{ Form::open(['action' => 'SlidesController@updateAll', 'method' => 'post']) }} 9 | @stop 10 | 11 | @section('controls') 12 | 13 | 14 | @stop 15 | 16 | {{-- {!! $errors->first('photo', '
:message
') !!} --}} 17 | 18 | {{-- TODO !!! PB!!!! btn-group checkbox n'apparait pas --}} 19 | 20 | @section('affichage') 21 |
22 | @foreach ($photos as $photo) 23 | 35 | @endforeach 36 |
37 | {{ Form::close() }} 38 | 39 | @endsection -------------------------------------------------------------------------------- /app/Photo.php: -------------------------------------------------------------------------------- 1 | hasOne('App\Slide'); 16 | } 17 | public function folders() { 18 | return $this->belongsToMany('App\Folder', 'portfolio', 'photo_id', 'folder_id'); 19 | } 20 | public function covers() { 21 | return $this->hasMany('App\Folder', 'cover_id'); 22 | } 23 | 24 | 25 | public function scopeNoSlides($query) { 26 | return $query->whereNotExists(function($query) 27 | { 28 | $query->select(\DB::raw(1)) 29 | ->from('slides') 30 | ->whereRaw('slides.photo_id = photos.id'); 31 | }); 32 | } 33 | 34 | public function scopeNotInFolder($query, $folder_id) { // TODO : Fuuuuuuuuuuuuuuuuuuuuuuu 35 | return $query->whereNotIn('id', function($query) use ($folder_id) 36 | { 37 | $query->select('photo_id') 38 | ->from('portfolio') 39 | ->where('folder_id', '=', $folder_id); 40 | }); 41 | } 42 | 43 | 44 | /** 45 | * Retourne les utilisations de la photo 46 | * @return array 47 | */ 48 | public function usages() { 49 | $arr = []; 50 | 51 | $this->slide ? array_push($arr, 'slide') : null ; 52 | $this->covers->isEmpty() ? null : array_push($arr, 'cover(s)') ; 53 | $this->folders->isEmpty() ? null : array_push($arr, 'folder(s)') ; 54 | 55 | return $arr; 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /resources/assets/js/my.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | 3 | // Photo preview 4 | function preview() { 5 | var imgUrl = $("#cover option:selected, #photo option:selected").data('link'); 6 | $("#preview").html(""); 7 | } 8 | 9 | $("#cover, #photo").change(function() { 10 | preview(); 11 | }); 12 | preview(); 13 | // Select reset 14 | $("button:reset").click(function() { 15 | $(".btn-select").removeClass("active"); 16 | }); 17 | 18 | }); 19 | 20 | 21 | 22 | 23 | /* 24 | // Active toggle 25 | $(".btn-select").change(function() { 26 | 27 | }); 28 | */ 29 | 30 | 31 | /* 32 | $(function(){ 33 | 34 | // Events 35 | $('#addLink').click(function() { 36 | $('#myModal').modal(); 37 | }); 38 | 39 | // Forms 40 | $(document).on('submit', '#formRegister', function(e) { 41 | e.preventDefault(); 42 | 43 | $('input+small').text(''); 44 | $('input').parent().removeClass('has-error'); 45 | 46 | $.ajax({ 47 | method: $(this).attr('method'), 48 | url: $(this).attr('action'), 49 | data: $(this).serialize(), 50 | dataType: "json" 51 | }) 52 | .done(function(data) { 53 | $('.alert-success').removeClass('hidden'); 54 | $('#myModal').modal('hide'); 55 | }) 56 | .fail(function(data) { 57 | $.each(data.responseJSON, function (key, value) { 58 | var input = '#formRegister input[name=' + key + ']'; 59 | $(input + '+small').text(value); 60 | $(input).parent().addClass('has-error'); 61 | }); 62 | }); 63 | }); 64 | 65 | }); 66 | */ 67 | 68 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | realpath(base_path('resources/views')), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => realpath(storage_path('framework/views')), 32 | 33 | 'routes' => [ 34 | 'home' => 'Home', 35 | 'portfolio' => 'Portfolio', 36 | // 'links' => 'Links', 37 | 'contact' => 'Contact', 38 | 'about' => 'About me' 39 | ], 40 | 41 | 'adminRoutes' => [ 42 | 'admin.index' => 'Dashboard', 43 | 'photos.index' => 'Photos', 44 | 'folders.index' => 'Folders', 45 | 'slides.index' => 'Slides', 46 | 'links.index' => 'Links', 47 | 'console.index' => 'Console', 48 | ], 49 | 50 | ]; 51 | -------------------------------------------------------------------------------- /resources/assets/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | 2 | window._ = require('lodash'); 3 | 4 | /** 5 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support 6 | * for JavaScript based Bootstrap features such as modals and tabs. This 7 | * code may be modified to fit the specific needs of your application. 8 | */ 9 | 10 | window.$ = window.jQuery = require('jquery'); 11 | require('bootstrap-sass'); 12 | 13 | /** 14 | * Vue is a modern JavaScript library for building interactive web interfaces 15 | * using reactive data binding and reusable components. Vue's API is clean 16 | * and simple, leaving you to focus on building your next great project. 17 | */ 18 | 19 | window.Vue = require('vue'); 20 | require('vue-resource'); 21 | 22 | /** 23 | * We'll register a HTTP interceptor to attach the "CSRF" header to each of 24 | * the outgoing requests issued by this application. The CSRF middleware 25 | * included with Laravel will automatically verify the header's value. 26 | */ 27 | 28 | Vue.http.interceptors.push((request, next) => { 29 | request.headers.set('X-CSRF-TOKEN', Laravel.csrfToken); 30 | 31 | next(); 32 | }); 33 | 34 | /** 35 | * Echo exposes an expressive API for subscribing to channels and listening 36 | * for events that are broadcast by Laravel. Echo and event broadcasting 37 | * allows your team to easily build robust real-time web applications. 38 | */ 39 | 40 | // import Echo from "laravel-echo" 41 | 42 | // window.Echo = new Echo({ 43 | // broadcaster: 'pusher', 44 | // key: 'your-pusher-key' 45 | // }); 46 | -------------------------------------------------------------------------------- /resources/views/pages/infolder.blade.php: -------------------------------------------------------------------------------- 1 | @extends ('template') 2 | 3 | @section('style') 4 | @parent 5 | {{-- {{ HTML::style('css/portfolio.css') }} --}} 6 | {{ HTML::style('lightGallery/css/lightgallery.min.css') }} 7 | @endsection 8 | 9 | @section('content') 10 |
11 |
12 | 13 |

{{ $folder->name }}

14 |
15 | 16 | {{-- TODO : +folder title +bouton retour folders --}} 17 |
18 | @foreach ($folder->photos as $thumbnail) 19 | 23 | {{ $thumbnail->caption }} 24 |
25 |
26 | @endforeach 27 |
28 |
29 | @endsection 30 | 31 | @section('scripts') 32 | @parent 33 | {{-- lightGallery --}} 34 | {{ HTML::script('lightGallery/js/lightgallery.min.js') }} 35 | {{ HTML::script('lightGallery/js/lg-hash.min.js') }} 36 | {{ HTML::script('lightGallery/js/lg-autoplay.min.js') }} 37 | 44 | @endsection 45 | -------------------------------------------------------------------------------- /resources/assets/sass/_portfolio.scss: -------------------------------------------------------------------------------- 1 | /* =============== Both =============== */ 2 | .thumbnails { 3 | margin: 2px; 4 | padding: 0; 5 | overflow: hidden; 6 | position: relative; 7 | 8 | @media (min-width: 700px) { 9 | max-width: calc(45vw - 4px); /* Deux items par ligne*/ 10 | } 11 | @media (min-width: 1000px) { 12 | max-width: calc(30vw - 4px); /* Trois items par ligne*/ 13 | } 14 | 15 | & > img { max-height: 20rem; } 16 | } 17 | 18 | .back-arrow { 19 | float: left; 20 | position: absolute; 21 | font-size: 2.5rem; 22 | line-height: 1.1; 23 | color: $color-lightgrey; 24 | 25 | &:hover { 26 | text-decoration: none; 27 | color: $color-light; 28 | } 29 | } 30 | 31 | /* =============== Portfolio =============== */ 32 | .caption { 33 | display: block; 34 | width: 100%; 35 | padding: 10px 20px; 36 | margin: 0; 37 | font-size: 2rem; 38 | font-family: 'Catamaran', 'Lato', sans-serif; 39 | font-weight: $font-thin; 40 | background-color: $color-dark; 41 | color: $color-light; 42 | } 43 | .folder:hover { 44 | text-decoration: none; 45 | & > .caption { 46 | background-color: $color-light; 47 | color: $color-darker; 48 | } 49 | } 50 | 51 | /* =============== InFolder =============== */ 52 | .mask { 53 | position: absolute; 54 | top: 0; left: 0; 55 | width: 100%; height: 100%; 56 | opacity: 0; 57 | border: 1px solid #C2C2C2; 58 | } 59 | .photo:hover { 60 | & > img { 61 | opacity: .75; 62 | } 63 | & > .mask { 64 | top: 5%; left: 5%; 65 | width: 90%; height: 90%; 66 | opacity: 1; 67 | } 68 | } 69 | 70 | -------------------------------------------------------------------------------- /resources/assets/sass/_design.scss: -------------------------------------------------------------------------------- 1 | /* =============== Utilities =============== */ 2 | 3 | .transitions, 4 | .transitions * { 5 | -webkit-transition: all .25s ease-out; 6 | transition: all .25s ease-out; 7 | } 8 | 9 | h1 { 10 | font-family: 'Catamaran', 'Lato', sans-serif; 11 | } 12 | p, strong { 13 | font-weight: $font-normal; 14 | } 15 | .text-white { 16 | color: $color-light !important; 17 | } 18 | .text-muted { 19 | color: $color-lightgrey !important; 20 | } 21 | 22 | 23 | /* =============== InFolder =============== */ 24 | 25 | .grey { 26 | background-color: $color-background !important; 27 | } 28 | .navbar.vshadow { 29 | -webkit-box-shadow: 0 0 20px 10px rgba(30, 30, 30, .8); 30 | box-shadow: 0 0 20px 10px rgba(30, 30, 30, .8); 31 | } 32 | .footer.vshadow { 33 | -webkit-box-shadow: 0 0 5px 3px rgba(30, 30, 30, .8); 34 | box-shadow: 0 0 5px 3px rgba(30, 30, 30, .8); 35 | } 36 | .transparent { 37 | background-color: transparent !important; 38 | // background-color: rgba(0,0,0,0.35) !important; 39 | // box-shadow: none !important; 40 | } 41 | .contour { 42 | border: 1px solid $color-lightgrey; 43 | padding: 1.5rem; 44 | } 45 | 46 | 47 | 48 | /* =============== LISTS =============== */ 49 | 50 | .list { 51 | display: inline-block; 52 | padding: 0; 53 | & > li { 54 | padding: 1em; 55 | list-style-type: none; 56 | border-bottom: 1px solid $color-lightgrey; 57 | &:last-child { border-bottom: none; } 58 | & > a { 59 | color: $color-light !important; 60 | display: block; 61 | } 62 | } 63 | } 64 | 65 | -------------------------------------------------------------------------------- /public/css/portfolio.css: -------------------------------------------------------------------------------- 1 | /* =============== Both =============== */ 2 | .thumbnails { 3 | padding: 0; 4 | margin: 2px; 5 | overflow: hidden; 6 | position: relative; 7 | } 8 | .thumbnails > img { 9 | max-height: 20rem; 10 | } 11 | 12 | /* =============== Portfolio =============== */ 13 | .caption { 14 | display: block; 15 | width: 100%; 16 | padding: 10px 20px; 17 | margin: 0; 18 | font-size: 2rem; 19 | font-family: 'Catamaran', 'Lato', sans-serif; 20 | font-weight: 200; 21 | background-color: #111; 22 | } 23 | .folder:hover { 24 | text-decoration: none; 25 | } 26 | .folder:hover > .caption { 27 | color: #000; 28 | background-color: #fff; 29 | } 30 | 31 | /* =============== InFolder =============== */ 32 | .mask { 33 | position: absolute; 34 | top: 0; left: 0; 35 | width: 100%; height: 100%; 36 | opacity: 0; 37 | border: 2px solid #fff; 38 | } 39 | .photo:hover > img { 40 | opacity: .75; 41 | } 42 | .photo:hover > .mask { 43 | top: 5%; left: 5%; 44 | width: 90%; height: 90%; 45 | opacity: 1; 46 | } 47 | 48 | /* =============== Media Queries =============== */ 49 | @media (max-width: 500px) { /* ===== Mobile ===== */ 50 | 51 | } 52 | 53 | @media (min-width: 500px) { /* ===== Small ===== */ 54 | 55 | } 56 | 57 | @media (min-width: 700px) { /* ===== Wide ===== */ 58 | .thumbnails { 59 | max-width: calc(45vw - 4px); /* Deux items par ligne */ 60 | } 61 | } 62 | 63 | @media (min-width: 1000px) { /* ===== Widest ===== */ 64 | .thumbnails { 65 | max-width: calc(30vw - 4px); /* Trois items par ligne */ 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /resources/views/admin/resources/folders/select.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.resources.template') 2 | 3 | @section('title') 4 | Choose all photos in the folder '{{ $folder->name}}' 5 | @endsection 6 | 7 | @section('form') 8 | {{ Form::open(['action' => ['InFolderController@updateAll', $folder->id], 'method' => 'post']) }} 9 | @stop 10 | 11 | @section('controls') 12 | 13 | 14 | @stop 15 | 16 | {{-- {!! $errors->first('photo', '
:message
') !!} --}} 17 | 18 | {{-- TODO !!! PB!!!! btn-group checkbox n'apparait pas --}} 19 | 20 | @section('affichage') 21 |
22 | {{--
--}} 23 | @foreach ($photos as $photo) 24 | {{--
--}} 25 | 37 | {{--
--}} 38 | @endforeach 39 | {{--
--}} 40 |
41 | {{ Form::close() }} 42 | 43 | 44 | @endsection -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "description": "The Laravel Framework.", 4 | "keywords": ["framework", "laravel"], 5 | "license": "MIT", 6 | "type": "project", 7 | "require": { 8 | "php": ">=5.6.4", 9 | "laravel/framework": ">=5.3", 10 | "laravelcollective/html": ">=5.2", 11 | "guzzlehttp/guzzle": "^6.2", 12 | "barryvdh/laravel-debugbar": "^2.3", 13 | "intervention/image": "^2.3", 14 | "laravel/tinker": "^1.0" 15 | }, 16 | "require-dev": { 17 | "fzaninotto/faker": "~1.4", 18 | "mockery/mockery": "0.9.*", 19 | "phpunit/phpunit": "~5.0", 20 | "symfony/css-selector": "3.1.*", 21 | "symfony/dom-crawler": "3.1.*" 22 | }, 23 | "autoload": { 24 | "classmap": [ 25 | "database" 26 | ], 27 | "psr-4": { 28 | "App\\": "app/" 29 | } 30 | }, 31 | "autoload-dev": { 32 | "classmap": [ 33 | "tests/TestCase.php" 34 | ] 35 | }, 36 | "scripts": { 37 | "post-root-package-install": [ 38 | "php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 39 | ], 40 | "post-create-project-cmd": [ 41 | "php artisan key:generate" 42 | ], 43 | "post-install-cmd": [ 44 | "Illuminate\\Foundation\\ComposerScripts::postInstall", 45 | "php artisan optimize" 46 | ], 47 | "post-update-cmd": [ 48 | "Illuminate\\Foundation\\ComposerScripts::postUpdate", 49 | "php artisan optimize" 50 | ] 51 | }, 52 | "config": { 53 | "preferred-install": "dist" 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /public/lightGallery/css/lg-fb-comment-box.css: -------------------------------------------------------------------------------- 1 | /*! lightgallery - v1.6.0 - 2017-08-08 2 | * http://sachinchoolur.github.io/lightGallery/ 3 | * Copyright (c) 2017 Sachin N; Licensed GPLv3 */ 4 | .lg-outer.fb-comments .lg-img-wrap, .lg-outer.fb-comments .lg-video-cont { 5 | padding-right: 400px !important; 6 | } 7 | 8 | .lg-outer.fb-comments .fb-comments { 9 | height: 100%; 10 | overflow-y: auto; 11 | position: absolute; 12 | right: 0; 13 | top: 0; 14 | width: 420px; 15 | z-index: 99999; 16 | background: #fff url("../img/loading.gif") no-repeat scroll center center; 17 | } 18 | 19 | .lg-outer.fb-comments .fb-comments.fb_iframe_widget { 20 | background-image: none; 21 | } 22 | 23 | .lg-outer.fb-comments .fb-comments.fb_iframe_widget.fb_iframe_widget_loader { 24 | background: #fff url("../img/loading.gif") no-repeat scroll center center; 25 | } 26 | 27 | .lg-outer.fb-comments .lg-toolbar { 28 | right: 420px; 29 | width: auto; 30 | } 31 | 32 | .lg-outer.fb-comments .lg-actions .lg-next { 33 | right: 420px; 34 | } 35 | 36 | .lg-outer.fb-comments .lg-item { 37 | background-image: none; 38 | } 39 | 40 | .lg-outer.fb-comments .lg-item.lg-complete .lg-img-wrap, .lg-outer.fb-comments .lg-item.lg-complete .lg-video-cont { 41 | background-image: none; 42 | } 43 | 44 | .lg-outer.fb-comments .lg-img-wrap, .lg-outer.fb-comments .lg-video-cont { 45 | background: url("../img/loading.gif") no-repeat scroll transparent; 46 | background-position: center center; 47 | background-position: calc((100% - 400px) / 2) center; 48 | } 49 | 50 | .lg-outer.fb-comments .lg-sub-html { 51 | padding: 0; 52 | position: static; 53 | } 54 | 55 | .lg-outer.fb-comments .lg-video-cont { 56 | max-width: 1250px !important; 57 | } 58 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_KEY'), 36 | 'secret' => env('PUSHER_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | // 40 | ], 41 | ], 42 | 43 | 'redis' => [ 44 | 'driver' => 'redis', 45 | 'connection' => 'default', 46 | ], 47 | 48 | 'log' => [ 49 | 'driver' => 'log', 50 | ], 51 | 52 | 'null' => [ 53 | 'driver' => 'null', 54 | ], 55 | 56 | ], 57 | 58 | ]; 59 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 32 | 33 | $status = $kernel->handle( 34 | $input = new Symfony\Component\Console\Input\ArgvInput, 35 | new Symfony\Component\Console\Output\ConsoleOutput 36 | ); 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Shutdown The Application 41 | |-------------------------------------------------------------------------- 42 | | 43 | | Once Artisan has finished running. We will fire off the shutdown events 44 | | so that any final work may be done by the application before we shut 45 | | down the process. This is the last thing to happen to the request. 46 | | 47 | */ 48 | 49 | $kernel->terminate($input, $status); 50 | 51 | exit($status); 52 | -------------------------------------------------------------------------------- /resources/assets/js/admin.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | 3 | // Photo preview 4 | function preview() { 5 | var imgUrl = $("#cover option:selected, #photo option:selected").data('link'); 6 | $("#preview").html(""); 7 | } 8 | 9 | $("#cover, #photo").change(function() { 10 | preview(); 11 | }); 12 | preview(); 13 | // Select reset 14 | $("button:reset").click(function() { 15 | $(".btn-select").removeClass("active"); 16 | }); 17 | 18 | 19 | $(".rank").click(function(e) { 20 | var url = this.href; 21 | var rank = $($(this).attr('data')).val(); 22 | $(this).attr('href', url+'/'+rank); 23 | }); 24 | 25 | $(".folder-collapser").click(function(e) { 26 | e.preventDefault(); 27 | var target = $($(this).attr('href')); 28 | target.toggle(); 29 | }); 30 | 31 | 32 | 33 | }); 34 | 35 | /* 36 | // Active toggle 37 | $(".btn-select").change(function() { 38 | 39 | }); 40 | */ 41 | 42 | 43 | /* 44 | $(function(){ 45 | 46 | // Events 47 | $('#addLink').click(function() { 48 | $('#myModal').modal(); 49 | }); 50 | 51 | // Forms 52 | $(document).on('submit', '#formRegister', function(e) { 53 | e.preventDefault(); 54 | 55 | $('input+small').text(''); 56 | $('input').parent().removeClass('has-error'); 57 | 58 | $.ajax({ 59 | method: $(this).attr('method'), 60 | url: $(this).attr('action'), 61 | data: $(this).serialize(), 62 | dataType: "json" 63 | }) 64 | .done(function(data) { 65 | $('.alert-success').removeClass('hidden'); 66 | $('#myModal').modal('hide'); 67 | }) 68 | .fail(function(data) { 69 | $.each(data.responseJSON, function (key, value) { 70 | var input = '#formRegister input[name=' + key + ']'; 71 | $(input + '+small').text(value); 72 | $(input).parent().addClass('has-error'); 73 | }); 74 | }); 75 | }); 76 | 77 | }); 78 | */ 79 | 80 | -------------------------------------------------------------------------------- /public/bootstrap/css/bootstrap-reboot.min.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["../../scss/_reboot.scss","../../scss/_variables.scss","bootstrap-reboot.css","../../scss/mixins/_hover.scss"],"names":[],"mappings":"AA0HA,GAnCA,GAAI,GAAI,GAAI,GAAI,GAAI,GAmCpB,GA1BA,EAoIA,IA1GA,GA4GE,WAAA,EAlHF,QAMA,GAAA,GA1BA,EAoIA,IA1GA,GA8GE,cAAA,KA6DF,QAQA,GAEE,WAAA,KAkCF,OAzQA,GAyQA,MAEE,SAAA,QA/GF,IAoKA,SACE,SAAA,KA7PF,GArDA,GAAI,GAAI,GAAI,GAAI,GAAI,GAgOpB,MAsGA,OAKE,cAAA,MA9SF,QAySA,OAOE,YAAA,QAKF,SAlQA,IAAA,IAmQE,eAAA,SAnHF,MA4JA,OACE,QAAA,aAhcF,KACE,mBAAA,WAAA,WAAA,WACA,YAAA,WACA,YAAA,KACA,qBAAA,KACA,yBAAA,KACA,mBAAA,UACA,4BAAA,YAGF,EAAA,QAAA,SAGE,mBAAA,QAAA,WAAA,QAKA,cAAgB,MAAA,aASlB,KACE,OAAA,EACA,YAAA,cAAA,UAAA,mBAAA,WAAA,OCkM4H,iBDlM5H,MAAA,WACA,UAAA,KACA,YAAA,IACA,YAAA,IACA,MAAA,QACA,iBAAA,KExBF,sBFiCE,QAAA,YASF,GACE,mBAAA,YAAA,WAAA,YACA,OAAA,EAkCF,0BAAA,YAEE,gBAAA,UACA,gBAAA,UAAA,OACA,OAAA,KACA,cAAA,EAGF,QAEE,WAAA,OAWF,MAAA,MAAA,MAAA,MAIE,cAAA,EAGF,GACE,YAAA,IAGF,GAEE,YAAA,EAGF,WAiGA,OAhGE,OAAA,EAAA,EAAA,KAGF,IACE,WAAA,OAGF,EAAA,OAEE,YAAA,OAGF,MACE,UAAA,IAQF,IAAA,IAEE,SAAA,SACA,UAAA,IACA,YAAA,EAIF,IAAM,OAAA,OACN,IAAM,IAAA,MAON,EACE,MAAA,QACA,gBAAA,KACA,iBAAA,YACA,6BAAA,QGjLE,QHoLA,MAAA,QACA,gBAAA,UAUJ,8BGrLI,oCAAA,oCHsLF,MAAA,QACA,gBAAA,KAFF,oCAUI,QAAA,EASJ,KAAA,IAAA,IAAA,KAIE,YAAA,UAAA,UACA,UAAA,IA2BF,IACE,eAAA,OACA,aAAA,KAGF,eACE,SAAA,OAcF,cAAA,EAAA,KAAA,OAAA,MAAA,MAAA,OAAA,QAAA,SASE,iBAAA,aAAA,aAAA,aAQF,MACE,gBAAA,SAGF,QACE,YAAA,OACA,eAAA,OACA,MAAA,QAEA,aAAA,OAuBF,aACE,QAAA,OAAA,IACA,QAAA,yBAAA,KAAA,IAGF,OAAA,MAAA,SAAA,OAAA,SAKE,OAAA,EACA,YAAA,QACA,UAAA,QACA,YAAA,QAQF,OAAA,OAEE,eAAA,KAMF,aAAA,cAAA,OAAA,mBAIE,mBAAA,OAIF,gCAAA,+BAAA,gCAAA,yBAIE,QAAA,EACA,aAAA,KAGF,kBAAA,qBAEE,mBAAA,WAAA,WAAA,WACA,QAAA,EAHF,2BAAA,8BASI,OAAA,YAKJ,2BAAA,kBAAA,iBAAA,iBASE,mBAAA,QAGF,SAGE,OAAA,SAGF,SAME,UAAA,EAEA,QAAA,EACA,OAAA,EACA,OAAA,EAKF,OACE,QAAA,MACA,MAAA,KACA,UAAA,KACA,QAAA,EAEA,UAAA,OAEA,MAAA,QACA,YAAA,OEjIF,yCAAA,yCF2IE,OAAA,KEtIF,cF8IE,eAAA,KACA,mBAAA,KE1IF,4CAAA,yCFmJE,mBAAA,KAQF,6BACE,KAAA,QACA,mBAAA,OAWF,QACE,QAAA,UAGF,SACE,QAAA,KEvJF,SF6JE,QAAA"} -------------------------------------------------------------------------------- /public/css/admin.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 70px; 3 | padding-bottom: 60px; 4 | background-color: #e5e5e5; 5 | /*word-wrap: break-word;*/ 6 | } 7 | 8 | .nav-links.active { 9 | color: #FFFFFF !important; 10 | } 11 | 12 | .contour { 13 | border: 1px solid #333; 14 | border-radius: 5px; 15 | padding: 20px 30px; 16 | } 17 | 18 | 19 | .thumb { 20 | max-width: 100px; 21 | max-height: 60px; 22 | } 23 | 24 | .table-responsive { 25 | /*width: 100% !important;*/ 26 | } 27 | /* !!!!!!!!!!!!!!!!!!!!! 28 | div Background-size cover 29 | widht, height = 13vw 30 | 31 | width padding bottom 31% 32 | 33 | position relative 34 | float left 35 | */ 36 | .table-bordered, 37 | .table-bordered td, 38 | .table-bordered th { 39 | border: 1px solid #AAA !important; 40 | } 41 | 42 | .center-table, 43 | .center-table th, 44 | .center-table td { 45 | text-align: center !important; 46 | vertical-align: middle !important; 47 | } 48 | 49 | .container-fit { 50 | max-width: 600px; 51 | margin-right: auto; 52 | margin-left: auto; 53 | } 54 | 55 | .btn-select { 56 | padding: 0; 57 | } 58 | 59 | .btn-select > .card { 60 | /*background-color: blue;*/ 61 | } 62 | 63 | .btn-select.active .card { 64 | background-color: #5cb85c; 65 | } 66 | 67 | .btn-select .card:hover { 68 | box-shadow: 0 0 10px; 69 | /*background-color: #5cb85c;*/ 70 | } 71 | 72 | .card-check { 73 | position: relative !important; 74 | display: inline-block !important; 75 | } 76 | 77 | .navbar { 78 | box-shadow: 0 0 20px 1px; 79 | } 80 | 81 | .shadow { 82 | box-shadow: 0 3px 5px; 83 | } 84 | .shadow:hover { 85 | box-shadow: 0 3px 10px; 86 | } 87 | 88 | .absolute { 89 | position: absolute; 90 | } 91 | 92 | .folder-delimiter { 93 | border-bottom: 2px solid #006EB1; 94 | } 95 | 96 | .fond-blanc { 97 | background-color: #eee; 98 | } 99 | 100 | .center-block { 101 | display: block; 102 | margin-left: auto !important; 103 | margin-right: auto !important; 104 | } -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | /* 11 | |-------------------------------------------------------------------------- 12 | | Register The Auto Loader 13 | |-------------------------------------------------------------------------- 14 | | 15 | | Composer provides a convenient, automatically generated class loader for 16 | | our application. We just need to utilize it! We'll simply require it 17 | | into the script here so that we don't have to worry about manual 18 | | loading any of our classes later on. It feels nice to relax. 19 | | 20 | */ 21 | 22 | require __DIR__.'/../bootstrap/autoload.php'; 23 | 24 | /* 25 | |-------------------------------------------------------------------------- 26 | | Turn On The Lights 27 | |-------------------------------------------------------------------------- 28 | | 29 | | We need to illuminate PHP development, so let us turn on the lights. 30 | | This bootstraps the framework and gets it ready for use, then it 31 | | will load up this application so that we can run it and send 32 | | the responses back to the browser and delight our users. 33 | | 34 | */ 35 | 36 | $app = require_once __DIR__.'/../bootstrap/app.php'; 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Run The Application 41 | |-------------------------------------------------------------------------- 42 | | 43 | | Once we have the application, we can handle the incoming request 44 | | through the kernel, and send the associated response back to 45 | | the client's browser allowing them to enjoy the creative 46 | | and wonderful application we have prepared for them. 47 | | 48 | */ 49 | 50 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); 51 | 52 | $response = $kernel->handle( 53 | $request = Illuminate\Http\Request::capture() 54 | ); 55 | 56 | $response->send(); 57 | 58 | $kernel->terminate($request, $response); 59 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 39 | 40 | $this->mapWebRoutes(); 41 | 42 | // 43 | } 44 | 45 | /** 46 | * Define the "web" routes for the application. 47 | * 48 | * These routes all receive session state, CSRF protection, etc. 49 | * 50 | * @return void 51 | */ 52 | protected function mapWebRoutes() 53 | { 54 | Route::group([ 55 | 'middleware' => 'web', 56 | 'namespace' => $this->namespace, 57 | ], function ($router) { 58 | require base_path('routes/web.php'); 59 | }); 60 | } 61 | 62 | /** 63 | * Define the "api" routes for the application. 64 | * 65 | * These routes are typically stateless. 66 | * 67 | * @return void 68 | */ 69 | protected function mapApiRoutes() 70 | { 71 | Route::group([ 72 | 'middleware' => 'api', 73 | 'namespace' => $this->namespace, 74 | 'prefix' => 'api', 75 | ], function ($router) { 76 | require base_path('routes/api.php'); 77 | }); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 27 | // TODO : pas besoin des cookies ? 28 | // \App\Http\Middleware\EncryptCookies::class, 29 | // \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 30 | \Illuminate\Session\Middleware\StartSession::class, 31 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 32 | \App\Http\Middleware\VerifyCsrfToken::class, 33 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 34 | ], 35 | 36 | 'api' => [ 37 | 'throttle:60,1', 38 | 'bindings', 39 | ], 40 | ]; 41 | 42 | /** 43 | * The application's route middleware. 44 | * 45 | * These middleware may be assigned to groups or used individually. 46 | * 47 | * @var array 48 | */ 49 | protected $routeMiddleware = [ 50 | 'auth' => \Illuminate\Auth\Middleware\Authenticate::class, 51 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 52 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 53 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 54 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 55 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 56 | 'ajax' => \App\Http\Middleware\Ajax::class 57 | ]; 58 | } 59 | -------------------------------------------------------------------------------- /resources/assets/sass/_structures.scss: -------------------------------------------------------------------------------- 1 | /* =============== HEADER =============== */ 2 | 3 | #logo { 4 | height: 35px; 5 | @media ($mq-max-xs) { height: 25px; } 6 | @media ($mq-min-sm) { height: 40px; } 7 | } 8 | 9 | .nav-link { 10 | margin: 0.1em; 11 | padding: 0.4em 1em !important; 12 | font-family: 'Catamaran', 'Lato', sans-serif; 13 | font-weight: $font-thin; 14 | color: $color-light !important; 15 | font-size: 1.6rem; /* MQ */ 16 | 17 | &:hover { 18 | background-color: #fff; 19 | color: black !important; 20 | } 21 | &.nav-active:hover::after { 22 | opacity: 0; 23 | } 24 | 25 | @media ($mq-min-xl) { 26 | font-size: 1.6rem; 27 | } 28 | } 29 | 30 | .nav-active::after { 31 | content: ''; 32 | display:block; 33 | width: 100%; 34 | height: 1px; 35 | position: relative; 36 | bottom: 0; 37 | background: $color-light; 38 | } 39 | 40 | .navbar-toggler-right { /* Centrage toggler mobile*/ 41 | position: relative !important; 42 | right: -1rem !important; 43 | } 44 | 45 | /* =============== FOOTER =============== */ 46 | 47 | .footer { 48 | z-index: 99; 49 | position: absolute; 50 | bottom: 0; 51 | width: 100%; 52 | height: 40px; 53 | line-height: 40px; /* Vertically center the text*/ 54 | } 55 | 56 | /* =============== BODY =============== */ 57 | 58 | body { 59 | position: relative; 60 | min-height: 100vh; 61 | width: 100vw; 62 | padding-top: 110px; /* Espace header */ 63 | padding-bottom: 60px; /* Espace footer */ 64 | color: $color-light; 65 | /*font-family: 'Catamaran', 'Lato', sans-serif;*/ 66 | /*font-weight: 600;*/ 67 | } 68 | 69 | 70 | /* =============== MEDIA QUERIES =============== */ 71 | 72 | 73 | @media ($mq-min-md) { 74 | #logo { height: 30px } 75 | body { padding-top: 100px } 76 | .pop-cookie { top: 74px } 77 | .nav-link { font-size: 1.1rem; } 78 | } 79 | 80 | @media ($mq-min-lg) { 81 | body { padding-top: 110px } 82 | .pop-cookie { top: 84px } 83 | #logo { height: 40px } 84 | .nav-link { font-size: 1.5rem; } 85 | } 86 | 87 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 40 | } 41 | 42 | /** 43 | * Get a validator for an incoming registration request. 44 | * 45 | * @param array $data 46 | * @return \Illuminate\Contracts\Validation\Validator 47 | */ 48 | protected function validator(array $data) 49 | { 50 | return Validator::make($data, [ 51 | 'name' => 'required|max:255', 52 | 'email' => 'required|email|max:255|unique:users', 53 | 'password' => 'required|min:6|confirmed', 54 | ]); 55 | } 56 | 57 | /** 58 | * Create a new user instance after a valid registration. 59 | * 60 | * @param array $data 61 | * @return User 62 | */ 63 | protected function create(array $data) 64 | { 65 | return User::create([ 66 | 'name' => $data['name'], 67 | 'email' => $data['email'], 68 | 'password' => bcrypt($data['password']), 69 | ]); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | 4 | @section('content') 5 |
6 |
7 |
8 |
9 |
Reset Password
10 |
11 | @if (session('status')) 12 |
13 | {{ session('status') }} 14 |
15 | @endif 16 | 17 |
18 | {{ csrf_field() }} 19 | 20 |
21 | 22 | 23 |
24 | 25 | 26 | @if ($errors->has('email')) 27 | 28 | {{ $errors->first('email') }} 29 | 30 | @endif 31 |
32 |
33 | 34 |
35 |
36 | 39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | @endsection 48 | -------------------------------------------------------------------------------- /resources/assets/sass/admin.scss: -------------------------------------------------------------------------------- 1 | /* =============== DESIGN =============== */ 2 | 3 | body { 4 | padding-top: 70px; 5 | padding-bottom: 60px; 6 | background-color: #e5e5e5; 7 | } 8 | 9 | .contour { 10 | border: 1px solid #333; 11 | border-radius: 5px; 12 | padding: 20px 30px; 13 | } 14 | 15 | .thumb { 16 | max-width: 100px; 17 | max-height: 60px; 18 | } 19 | 20 | .container-fit { 21 | max-width: 600px; 22 | margin-right: auto; 23 | margin-left: auto; 24 | } 25 | 26 | .card-check { 27 | position: relative !important; 28 | display: inline-block !important; 29 | } 30 | 31 | .navbar { 32 | box-shadow: 0 0 20px 1px; 33 | } 34 | 35 | .shadow { 36 | box-shadow: 0 3px 5px; 37 | &:hover { 38 | box-shadow: 0 3px 10px; 39 | } 40 | } 41 | 42 | .fond-blanc { 43 | background-color: #eee; 44 | } 45 | 46 | 47 | .absolute { 48 | position: absolute; 49 | } 50 | .center-block { 51 | display: block; 52 | margin-left: auto !important; 53 | margin-right: auto !important; 54 | } 55 | 56 | /* =============== TABLE =============== */ 57 | 58 | 59 | .table-bordered, 60 | .table-bordered td, 61 | .table-bordered th { 62 | border: 1px solid #AAA !important; 63 | } 64 | 65 | .center-table, 66 | .center-table th, 67 | .center-table td { 68 | text-align: center !important; 69 | vertical-align: middle !important; 70 | } 71 | 72 | .tr-folder { 73 | &:not(:first-child) { 74 | border-top: 2px solid #006EB1; 75 | &:last-child { 76 | border-bottom: 2px solid #006EB1; 77 | } 78 | } 79 | } 80 | 81 | input[type="number"] { 82 | width: 58px; 83 | text-align: center; 84 | } 85 | 86 | /* =============== BUTTONS =============== */ 87 | 88 | 89 | .btn-select { 90 | padding: 0; 91 | } 92 | 93 | .btn-select > .card { 94 | /*background-color: blue;*/ 95 | } 96 | 97 | .btn-select.active .card { 98 | background-color: #5cb85c; 99 | } 100 | 101 | .btn-select .card:hover { 102 | box-shadow: 0 0 10px; 103 | /*background-color: #5cb85c;*/ 104 | } 105 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 60 | return response()->json(['error' => 'Unauthenticated.'], 401); 61 | } 62 | 63 | return redirect()->guest('login'); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /app/Http/Controllers/PagesController.php: -------------------------------------------------------------------------------- 1 | load('photo'); 17 | return view('pages.home', compact('slides')); 18 | } 19 | 20 | // Affiche la page à propos 21 | public function about() 22 | { 23 | $links = Link::all(); 24 | return view('pages.about', compact('links')); 25 | } 26 | 27 | // Affiche les liens 28 | public function links() 29 | { 30 | $links = Link::all(); 31 | return view('pages.links', compact('links')); 32 | } 33 | 34 | // Affiche le portfolio et si l'id est bon, le dossier 35 | public function portfolio(int $id = null) 36 | { 37 | if (is_null($id)) { 38 | // Retourne la vue avec tous les dossiers 39 | $folders = Folder::hasPhotos()->get()->load('cover'); 40 | return view('pages.portfolio', compact('folders')); 41 | 42 | } else { 43 | // Vérifie si le dossier existe via l'id 44 | $folder = Folder::findOrFail($id); 45 | 46 | if (!is_null($folder) && !$folder->photos->isEmpty()) { 47 | // Le dossier existe et Contient des photos 48 | return view('pages.infolder', compact('folder')); 49 | } 50 | 51 | abort(404); 52 | } 53 | } 54 | 55 | // Dashboard admin 56 | public function showAdmin() 57 | { 58 | $this->middleware('auth'); 59 | 60 | $photos = Photo::all(); 61 | $folders = Folder::all(); 62 | $slides = Slide::all(); 63 | $links = Link::all(); 64 | 65 | return view('admin.panel', compact('photos', 'folders', 'slides', 'links')); 66 | } 67 | 68 | // Mentions légales 69 | public function mentionsLegales() 70 | { 71 | return view('pages.mentions-legales'); 72 | } 73 | 74 | /* 75 | // Hash some meat 76 | public function hash(Request $request = null) { 77 | if ($_SERVER['REQUEST_METHOD'] === 'POST') { 78 | return bcrypt($request->input('meat')); 79 | } 80 | 81 | $meat = \Faker\Factory::create()->sha256(); 82 | 83 | return $meat; 84 | // return view('hash'); 85 | } 86 | */ 87 | 88 | } 89 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | 'local', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Default Cloud Filesystem Disk 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Many applications store files both locally and in the cloud. For this 26 | | reason, you may specify a default "cloud" driver here. This driver 27 | | will be bound as the Cloud disk implementation in the container. 28 | | 29 | */ 30 | 31 | 'cloud' => 's3', 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | Filesystem Disks 36 | |-------------------------------------------------------------------------- 37 | | 38 | | Here you may configure as many filesystem "disks" as you wish, and you 39 | | may even configure multiple disks of the same driver. Defaults have 40 | | been setup for each driver as an example of the required options. 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path('app'), 49 | ], 50 | 51 | 'public' => [ 52 | 'driver' => 'local', 53 | 'root' => storage_path('app/public'), 54 | 'visibility' => 'public', 55 | ], 56 | 57 | 's3' => [ 58 | 'driver' => 's3', 59 | 'key' => 'your-key', 60 | 'secret' => 'your-secret', 61 | 'region' => 'your-region', 62 | 'bucket' => 'your-bucket', 63 | ], 64 | 65 | ], 66 | 67 | ]; 68 | -------------------------------------------------------------------------------- /app/Http/Controllers/AdminConsoleController.php: -------------------------------------------------------------------------------- 1 | true]); 38 | } else { 39 | $codeConsole = \Artisan::call($command); 40 | } 41 | 42 | // Log 43 | file_put_contents(storage_path("logs/console.log"), "Command '$command' => Code $codeConsole \n", FILE_APPEND); 44 | 45 | if ($codeConsole === 0) { // Pas d'erreur 46 | return redirect(route('console.index'))->withSuccess("La commande '$command' a bien été exécutée."); 47 | 48 | } else { // Erreur lors de l'exécution de la commande 49 | return redirect(route('console.index'))->withError("Problème lors de l'exécution de la commande '$command'. (code : $codeConsole)"); 50 | } 51 | } else { // Commande protégée 52 | return redirect(route('console.index'))->withError("Êtes-vous sur de vouloir faire '$command' ? Yes"); 53 | } 54 | } else { // Commande non reconnue 55 | return redirect(route('console.index'))->withError("La commande choisie n'existe pas."); 56 | } 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /app/Http/Controllers/InFolderController.php: -------------------------------------------------------------------------------- 1 | middleware('auth', ['except' => ['index']]); 15 | } 16 | 17 | /** 18 | * Show the form for adding a photo to the folder. 19 | * 20 | * @param int $id 21 | * @return \Illuminate\Http\Response 22 | */ 23 | public function add($id) 24 | { 25 | $folder = Folder::findOrFail($id); 26 | $photos = Photo::notInFolder($id)->get(); 27 | return view('admin.resources.folders.add', compact('folder', 'photos')); 28 | } 29 | 30 | /** 31 | * Show the form for adding a photo to the folder. 32 | * 33 | * @param int $id 34 | * @return \Illuminate\Http\Response 35 | */ 36 | public function attach(InFolderRequest $request, $folder_id) 37 | { 38 | $folder = Folder::findOrFail($folder_id); 39 | $photo = Photo::findOrFail($request->input('photo')); 40 | $folder->photos()->attach($photo); 41 | // die; 42 | return redirect(route('folders.index'))->withSuccess("La photo '" . $photo->caption . "' a été ajoutée au folder '" . $folder->name . "'."); 43 | } 44 | 45 | /** 46 | * Remove the specified photo from folder. 47 | * 48 | * @param int $id 49 | * @return \Illuminate\Http\Response 50 | */ 51 | public function detach($folder_id, $photo_id) 52 | { 53 | $oldPhoto = Photo::findOrFail($photo_id)->caption; 54 | $folder = Folder::findOrFail($folder_id); 55 | $folder->photos()->detach($photo_id); 56 | return redirect(route('folders.index'))->withSuccess("La photo '" . $oldPhoto . "' a été détachée du folder '" . $folder->name . "'."); 57 | } 58 | 59 | public function select($folder_id) 60 | { 61 | $folder = Folder::findOrFail($folder_id); 62 | $selected = $folder->photos->pluck('id')->toArray(); 63 | $photos = Photo::all()->sortBy('id'); 64 | return view('admin.resources.folders.select', compact('photos', 'folder', 'selected')); 65 | } 66 | 67 | public function updateAll(Request $request, $folder_id) 68 | { 69 | $folder = Folder::findOrFail($folder_id); 70 | $folder->photos()->sync(array_slice($request->input(), 1)); 71 | 72 | return redirect()->route('folders.index')->withSuccess("Les photos du folder '" . $folder->name . "' ont été modifiées."); 73 | 74 | } 75 | 76 | } 77 | -------------------------------------------------------------------------------- /resources/views/admin/resources/folders/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.resources.template') 2 | 3 | @section('title') 4 | All your folders {{ $folders->count() }} 5 | @stop 6 | 7 | @section('affichage') 8 | 9 | {{-- table-responsive --}} 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | @foreach ($folders as $folder) 23 | 24 | 25 | 26 | 27 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | @foreach ($folder->photos as $inFolderPhoto) 42 | 43 | 44 | 45 | 46 | 50 | 51 | 52 | @endforeach 53 | 54 | 55 | {{-- --}} 56 | 59 | 60 | 61 | @endforeach 62 | 63 | 64 | 67 | 68 | 69 | 70 |
ID / OrderNameCoverControls
{{ $folder->id }}{{ $folder->name }} 28 | Select photos 29 | Modify 30 | Delete 31 | 32 |
OrderPhotoControls
{{ $inFolderPhoto->id }}
{{ $inFolderPhoto->caption }}
47 | {{-- Modify --}} 48 | Detach 49 |
Add a photo in this folder 57 | Add a photo in this folder 58 |
65 | Add a new folder 66 |
71 | 72 | @endsection -------------------------------------------------------------------------------- /resources/views/pages/contact.blade.php: -------------------------------------------------------------------------------- 1 | @extends('template') 2 | 3 | @section('content') 4 |
5 |
6 | {{-- Social --}} 7 |
8 |
9 |

Follow me

10 | 28 |
29 |
30 | 31 | {{-- Contact --}} 32 | 33 |
34 |
35 |

Contact me

36 |

My mail : wildlifetonino@gmail.com

37 | {{-- 38 | @if(session('fbContact')) 39 | 42 | @endif 43 |
44 | {{ Form::open(['action' => 'ContactController@postMessage']) }} 45 | {{ Form::myInput('name', 'text', 'Your name', 'John Doe', null, 'autofocus required') }} 46 | {{ Form::myInput('email', 'email', 'Your email', 'email@mail.com', null, 'required') }} 47 | {{ Form::myInput('texte', 'textarea', 'Your message', 'Hello !', null, 'required') }} 48 | {{ Form::mySubmit('Send') }} 49 | {{ Form::close() }} 50 |
51 | --}} 52 | 53 |
54 |
55 | 56 |
57 |
58 | @endsection 59 | 60 | 61 | -------------------------------------------------------------------------------- /public/css/all.min.css: -------------------------------------------------------------------------------- 1 | @import 'https://fonts.googleapis.com/css?family=Catamaran:200';#logo{height:35px}@media (max-width:355px){#logo{height:25px}}@media (min-width:576px){#logo{height:40px}}.nav-link{font-family:'Catamaran','Lato',sans-serif;font-size:1.6rem;font-weight:200;margin:.1em;padding:.4em 1em!important;color:#fff!important}.nav-link:hover{color:#000!important;background-color:#fff}.nav-link.nav-active:hover::after{opacity:0}@media (min-width:1200px){.nav-link{font-size:1.6rem}}.nav-active::after{position:relative;bottom:0;display:block;width:100%;height:1px;content:'';background:#fff}.navbar-toggler-right{position:relative!important;right:-1rem!important}.footer{line-height:40px;position:fixed;z-index:99;bottom:0;width:100%;height:40px}body{padding-top:110px;padding-bottom:60px;color:#fff}@media (min-width:768px){#logo{height:30px}body{padding-top:100px}.pop-cookie{top:74px}.nav-link{font-size:1.1rem}}@media (min-width:992px){body{padding-top:110px}.pop-cookie{top:84px}#logo{height:40px}.nav-link{font-size:1.5rem}}.transitions,.transitions *{-webkit-transition:all .25s ease-out;transition:all .25s ease-out}h1{font-family:'Catamaran','Lato',sans-serif}p,strong{font-weight:400}.text-white{color:#fff!important}.text-muted{color:#888!important}.grey{background-color:#1e1e1e!important}.navbar.vshadow{-webkit-box-shadow:0 0 20px 10px rgba(30,30,30,.8);box-shadow:0 0 20px 10px rgba(30,30,30,.8)}.footer.vshadow{-webkit-box-shadow:0 0 5px 3px rgba(30,30,30,.8);box-shadow:0 0 5px 3px rgba(30,30,30,.8)}.transparent{background-color:rgba(0,0,0,.35)!important}.contour{padding:1.5rem;border:1px solid #888}.list{display:inline-block;padding:0}.list>li{padding:1em;list-style-type:none;border-bottom:1px solid #888}.list>li:last-child{border-bottom:none}.list>li>a{display:block;color:#fff!important}#welcome{z-index:100;text-shadow:1px 1px 5px #000}.slides{position:absolute;z-index:1;top:0;left:0;overflow:hidden;width:100%;height:100%;background-position:center;background-size:cover}.thumbnails{position:relative;overflow:hidden;margin:2px;padding:0}@media (min-width:700px){.thumbnails{max-width:calc(45vw - 4px)}}@media (min-width:1000px){.thumbnails{max-width:calc(30vw - 4px)}}.thumbnails>img{max-height:20rem}.back-arrow{font-size:2.5rem;line-height:1.1;position:absolute;float:left;color:#888}.back-arrow:hover,.caption{color:#fff}.caption{font-family:'Catamaran','Lato',sans-serif;font-size:2rem;font-weight:200;display:block;width:100%;margin:0;padding:10px 20px;background-color:#111}.back-arrow:hover,.folder:hover{text-decoration:none}.folder:hover>.caption{color:#000;background-color:#fff}.mask{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;border:1px solid #c2c2c2}.photo:hover>img{opacity:.75}.photo:hover>.mask{top:5%;left:5%;width:90%;height:90%;opacity:1} -------------------------------------------------------------------------------- /app/Http/Controllers/LinksController.php: -------------------------------------------------------------------------------- 1 | middleware('auth', ['except' => ['index']]); 13 | } 14 | 15 | /** 16 | * Display a listing of the resource. 17 | * 18 | * @return \Illuminate\Http\Response 19 | */ 20 | public function index() 21 | { 22 | $links = Link::all()->sortBy('id'); 23 | return view('admin.resources.links.index', compact('links')); 24 | } 25 | 26 | /** 27 | * Show the form for creating a new resource. 28 | * 29 | * @return \Illuminate\Http\Response 30 | */ 31 | public function create() 32 | { 33 | return view('admin.resources.links.create'); 34 | } 35 | 36 | /** 37 | * Store a newly created resource in storage. 38 | * 39 | * @param \Illuminate\Http\Request $request 40 | * @return \Illuminate\Http\Response 41 | */ 42 | public function store(LinkRequest $request) 43 | { 44 | $link = Link::firstOrCreate([ 45 | 'caption' => $request->caption, 46 | 'link' => $request->link, 47 | ]); 48 | 49 | return redirect(route('links.index'))->withSuccess("Le lien " . $link->caption . " a été créé."); 50 | } 51 | 52 | /** 53 | * Display the specified resource. 54 | * 55 | * @param int $id 56 | * @return \Illuminate\Http\Response 57 | */ 58 | public function show($id) 59 | { 60 | $link = Link::findOrFail($id)->link; 61 | return redirect($link); 62 | } 63 | 64 | /** 65 | * Show the form for editing the specified resource. 66 | * 67 | * @param int $id 68 | * @return \Illuminate\Http\Response 69 | */ 70 | public function edit($id) 71 | { 72 | $link = Link::findOrFail($id); 73 | return view('admin.resources.links.edit', compact('link')); 74 | } 75 | 76 | /** 77 | * Update the specified resource in storage. 78 | * 79 | * @param \Illuminate\Http\Request $request 80 | * @param int $id 81 | * @return \Illuminate\Http\Response 82 | */ 83 | public function update(LinkRequest $request, $id) 84 | { 85 | $link = Link::findOrFail($id); 86 | $link->update($request->all()); 87 | return redirect(route('links.index'))->with("success", "Le lien " . $link->caption . " a mis à jour."); 88 | } 89 | 90 | /** 91 | * Remove the specified resource from storage. 92 | * 93 | * @param int $id 94 | * @return \Illuminate\Http\Response 95 | */ 96 | public function destroy($id) 97 | { 98 | $oldLink = Link::findOrFail($id)->caption; 99 | Link::destroy($id); 100 | return redirect(route('links.index'))->withSuccess("Le lien " . $oldLink . " a été supprimé."); 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_DRIVER', 'sync'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Queue Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may configure the connection information for each server that 26 | | is used by your application. A default configuration has been added 27 | | for each back-end shipped with Laravel. You are free to add more. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | ], 50 | 51 | 'sqs' => [ 52 | 'driver' => 'sqs', 53 | 'key' => 'your-public-key', 54 | 'secret' => 'your-secret-key', 55 | 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id', 56 | 'queue' => 'your-queue-name', 57 | 'region' => 'us-east-1', 58 | ], 59 | 60 | 'redis' => [ 61 | 'driver' => 'redis', 62 | 'connection' => 'default', 63 | 'queue' => 'default', 64 | 'retry_after' => 90, 65 | ], 66 | 67 | ], 68 | 69 | /* 70 | |-------------------------------------------------------------------------- 71 | | Failed Queue Jobs 72 | |-------------------------------------------------------------------------- 73 | | 74 | | These options configure the behavior of failed queue job logging so you 75 | | can control which database and table are used to store the jobs that 76 | | have failed. You may change them to any database / table you wish. 77 | | 78 | */ 79 | 80 | 'failed' => [ 81 | 'database' => env('DB_CONNECTION', 'mysql'), 82 | 'table' => 'failed_jobs', 83 | ], 84 | 85 | ]; 86 | -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Laravel 9 | 10 | 11 | 12 | 13 | 14 | 66 | 67 | 68 |
69 | @if (Route::has('login')) 70 | 74 | @endif 75 | 76 |
77 |
78 | Laravel 79 |
80 | 81 | 88 |
89 |
90 | 91 | 92 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Cache Stores 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the cache "stores" for your application as 26 | | well as their drivers. You may even define multiple stores for the 27 | | same cache driver to group types of items stored in your caches. 28 | | 29 | */ 30 | 31 | 'stores' => [ 32 | 33 | 'apc' => [ 34 | 'driver' => 'apc', 35 | ], 36 | 37 | 'array' => [ 38 | 'driver' => 'array', 39 | ], 40 | 41 | 'database' => [ 42 | 'driver' => 'database', 43 | 'table' => 'cache', 44 | 'connection' => null, 45 | ], 46 | 47 | 'file' => [ 48 | 'driver' => 'file', 49 | 'path' => storage_path('framework/cache'), 50 | ], 51 | 52 | 'memcached' => [ 53 | 'driver' => 'memcached', 54 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 55 | 'sasl' => [ 56 | env('MEMCACHED_USERNAME'), 57 | env('MEMCACHED_PASSWORD'), 58 | ], 59 | 'options' => [ 60 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 61 | ], 62 | 'servers' => [ 63 | [ 64 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 65 | 'port' => env('MEMCACHED_PORT', 11211), 66 | 'weight' => 100, 67 | ], 68 | ], 69 | ], 70 | 71 | 'redis' => [ 72 | 'driver' => 'redis', 73 | 'connection' => 'default', 74 | ], 75 | 76 | ], 77 | 78 | /* 79 | |-------------------------------------------------------------------------- 80 | | Cache Key Prefix 81 | |-------------------------------------------------------------------------- 82 | | 83 | | When utilizing a RAM based store such as APC or Memcached, there might 84 | | be other applications utilizing the same cache. So, we'll specify a 85 | | value to get prefixed to all our keys so we can avoid collisions. 86 | | 87 | */ 88 | 89 | 'prefix' => 'laravel', 90 | 91 | ]; 92 | -------------------------------------------------------------------------------- /public/lightGallery/js/lg-autoplay.min.js: -------------------------------------------------------------------------------- 1 | /*! lg-autoplay - v1.0.4 - 2017-03-28 2 | * http://sachinchoolur.github.io/lightGallery 3 | * Copyright (c) 2017 Sachin N; Licensed GPLv3 */ 4 | !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){!function(){"use strict";var b={autoplay:!1,pause:5e3,progressBar:!0,fourceAutoplay:!1,autoplayControls:!0,appendAutoplayControlsTo:".lg-toolbar"},c=function(c){return this.core=a(c).data("lightGallery"),this.$el=a(c),!(this.core.$items.length<2)&&(this.core.s=a.extend({},b,this.core.s),this.interval=!1,this.fromAuto=!0,this.canceledOnTouch=!1,this.fourceAutoplayTemp=this.core.s.fourceAutoplay,this.core.doCss()||(this.core.s.progressBar=!1),this.init(),this)};c.prototype.init=function(){var a=this;a.core.s.autoplayControls&&a.controls(),a.core.s.progressBar&&a.core.$outer.find(".lg").append('
'),a.progress(),a.core.s.autoplay&&a.$el.one("onSlideItemLoad.lg.tm",function(){a.startlAuto()}),a.$el.on("onDragstart.lg.tm touchstart.lg.tm",function(){a.interval&&(a.cancelAuto(),a.canceledOnTouch=!0)}),a.$el.on("onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm",function(){!a.interval&&a.canceledOnTouch&&(a.startlAuto(),a.canceledOnTouch=!1)})},c.prototype.progress=function(){var a,b,c=this;c.$el.on("onBeforeSlide.lg.tm",function(){c.core.s.progressBar&&c.fromAuto&&(a=c.core.$outer.find(".lg-progress-bar"),b=c.core.$outer.find(".lg-progress"),c.interval&&(b.removeAttr("style"),a.removeClass("lg-start"),setTimeout(function(){b.css("transition","width "+(c.core.s.speed+c.core.s.pause)+"ms ease 0s"),a.addClass("lg-start")},20))),c.fromAuto||c.core.s.fourceAutoplay||c.cancelAuto(),c.fromAuto=!1})},c.prototype.controls=function(){var b=this,c='';a(this.core.s.appendAutoplayControlsTo).append(c),b.core.$outer.find(".lg-autoplay-button").on("click.lg",function(){a(b.core.$outer).hasClass("lg-show-autoplay")?(b.cancelAuto(),b.core.s.fourceAutoplay=!1):b.interval||(b.startlAuto(),b.core.s.fourceAutoplay=b.fourceAutoplayTemp)})},c.prototype.startlAuto=function(){var a=this;a.core.$outer.find(".lg-progress").css("transition","width "+(a.core.s.speed+a.core.s.pause)+"ms ease 0s"),a.core.$outer.addClass("lg-show-autoplay"),a.core.$outer.find(".lg-progress-bar").addClass("lg-start"),a.interval=setInterval(function(){a.core.index+1middleware('auth', ['except' => ['index']]); 14 | } 15 | 16 | /** 17 | * Display a listing of the resource. 18 | * 19 | * @return \Illuminate\Http\Response 20 | */ 21 | public function index() 22 | { 23 | $folders = Folder::all()->sortBy('id')->load('cover', 'photos'); 24 | return view('admin.resources.folders.index', compact('folders')); 25 | } 26 | 27 | /** 28 | * Show the form for creating a new resource. 29 | * 30 | * @return \Illuminate\Http\Response 31 | */ 32 | public function create() 33 | { 34 | $photos = Photo::get()->sortBy('id'); 35 | return view('admin.resources.folders.create', compact('photos')); 36 | } 37 | 38 | /** 39 | * Store a newly created resource in storage. 40 | * 41 | * @param \Illuminate\Http\Request $request 42 | * @return \Illuminate\Http\Response 43 | */ 44 | public function store(FolderRequest $request) 45 | { 46 | $folder = new Folder(); 47 | $folder->name = $request->input('name'); 48 | $folder->cover_id = Photo::findOrFail($request->input('cover'))->id; 49 | $folder->save(); 50 | return redirect(route('folders.index'))->withSuccess("Le folder '" . $folder->name ."' a été ajouté."); 51 | } 52 | 53 | /** 54 | * Display the specified resource. 55 | * 56 | * @param int $id 57 | * @return \Illuminate\Http\Response 58 | */ 59 | public function show($id) 60 | { 61 | // 62 | } 63 | 64 | /** 65 | * Show the form for editing the specified resource. 66 | * 67 | * @param int $id 68 | * @return \Illuminate\Http\Response 69 | */ 70 | public function edit($id) 71 | { 72 | $photos = Photo::get()->sortBy('id'); 73 | $folder = Folder::findOrFail($id); 74 | return view('admin.resources.folders.edit', compact('folder', 'photos')); 75 | } 76 | 77 | /** 78 | * Update the specified resource in storage. 79 | * 80 | * @param \Illuminate\Http\Request $request 81 | * @param int $id 82 | * @return \Illuminate\Http\Response 83 | */ 84 | public function update(FolderRequest $request, $id) 85 | { 86 | $folder = Folder::findOrFail($id); 87 | $folder->name = $request->input('name'); 88 | $folder->cover_id = Photo::findOrFail($request->input('cover'))->id; 89 | $folder->save(); 90 | return redirect(route('folders.index'))->with("success", "Le folder " . $folder->name . " a mis à jour."); 91 | } 92 | 93 | /** 94 | * Remove the specified resource from storage. 95 | * 96 | * @param int $id 97 | * @return \Illuminate\Http\Response 98 | */ 99 | public function destroy($id) 100 | { 101 | $oldFolder = Folder::findOrFail($id)->name; 102 | Folder::destroy($id); 103 | return redirect(route('folders.index'))->withSuccess("Le folder " . $oldFolder . " a été supprimé."); 104 | } 105 | 106 | } 107 | -------------------------------------------------------------------------------- /app/Http/Controllers/SlidesController.php: -------------------------------------------------------------------------------- 1 | middleware('auth', ['except' => ['index']]); 16 | } 17 | 18 | /** 19 | * Display a listing of the resource. 20 | * 21 | * @return \Illuminate\Http\Response 22 | */ 23 | public function index() 24 | { 25 | $slides = Slide::all()->load('photo'); 26 | return view('admin.resources.slides.index', compact('slides')); 27 | } 28 | 29 | /** 30 | * Show the form for creating a new resource. 31 | * 32 | * @return \Illuminate\Http\Response 33 | */ 34 | public function create() 35 | { 36 | $photos = Photo::noSlides()->get()->sortBy('id'); 37 | return view('admin.resources.slides.create', compact('photos')); 38 | } 39 | /** 40 | * Store a newly created resource in storage. 41 | * 42 | * @param \Illuminate\Http\Request $request 43 | * @return \Illuminate\Http\Response 44 | */ 45 | public function store(SlideRequest $request) 46 | { 47 | $slide = new Slide(); 48 | $slide->photo_id = Photo::findOrFail($request->input('photo'))->id; 49 | $slide->save(); 50 | return redirect(route('slides.index'))->withSuccess("Le slide a été ajouté."); 51 | 52 | } 53 | 54 | public function select() 55 | { 56 | $slides = Slide::all()->pluck('photo_id')->toArray(); 57 | $photos = Photo::all()->sortBy('id'); 58 | return view('admin.resources.slides.select', compact('photos', 'slides')); 59 | } 60 | 61 | public function updateAll(Request $request) 62 | { 63 | Slide::truncate(); 64 | foreach (array_slice($request->input(), 1) as $photo => $id) { 65 | $slide = new Slide(); 66 | $slide->photo_id = Photo::findOrFail($id)->id; 67 | $slide->save(); 68 | } 69 | return redirect()->route('slides.select')->withSuccess("Les slides ont été modifiées."); 70 | 71 | } 72 | 73 | /** 74 | * Display the specified resource. 75 | * 76 | * @param int $id 77 | * @return \Illuminate\Http\Response 78 | */ 79 | public function show($id) 80 | { 81 | return "show"; 82 | } 83 | 84 | /** 85 | * Show the form for editing the specified resource. 86 | * 87 | * @param int $id 88 | * @return \Illuminate\Http\Response 89 | */ 90 | public function edit($id) 91 | { 92 | return redirect()->route('slides.select'); 93 | } 94 | 95 | /** 96 | * Update the specified resource in storage. 97 | * 98 | * @param \Illuminate\Http\Request $request 99 | * @param int $id 100 | * @return \Illuminate\Http\Response 101 | */ 102 | public function update(Request $request, $id) 103 | { 104 | // return redirect()->route('slides.index'); 105 | return "update"; 106 | } 107 | 108 | /** 109 | * Remove the specified resource from storage. 110 | * 111 | * @param int $id 112 | * @return \Illuminate\Http\Response 113 | */ 114 | public function destroy($id) 115 | { 116 | Slide::destroy($id); 117 | return redirect()->route('slides.index')->withSuccess("Le slide a été supprimé."); 118 | } 119 | } 120 | -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Login
9 |
10 |
11 | {{ csrf_field() }} 12 | 13 |
14 | 15 | 16 |
17 | 18 | 19 | @if ($errors->has('email')) 20 | 21 | {{ $errors->first('email') }} 22 | 23 | @endif 24 |
25 |
26 | 27 |
28 | 29 | 30 |
31 | 32 | 33 | @if ($errors->has('password')) 34 | 35 | {{ $errors->first('password') }} 36 | 37 | @endif 38 |
39 |
40 | 41 |
42 |
43 |
44 | 47 |
48 |
49 |
50 | 51 |
52 |
53 | 56 | 57 | 58 | Forgot Your Password? 59 | 60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 | @endsection 69 | -------------------------------------------------------------------------------- /public/bootstrap/css/bootstrap-reboot.min.css: -------------------------------------------------------------------------------- 1 | dl,h1,h2,h3,h4,h5,h6,ol,p,pre,ul{margin-top:0}address,dl,ol,p,pre,ul{margin-bottom:1rem}caption,th{text-align:left}button,hr,input{overflow:visible}pre,textarea{overflow:auto}dd,h1,h2,h3,h4,h5,h6,label,legend{margin-bottom:.5rem}address,legend{line-height:inherit}progress,sub,sup{vertical-align:baseline}label,output{display:inline-block}html{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}*,::after,::before{-webkit-box-sizing:inherit;box-sizing:inherit}@-ms-viewport{width:device-width}body{margin:0;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:1rem;font-weight:400;line-height:1.5;color:#292b2c;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0}abbr[data-original-title],abbr[title]{text-decoration:underline;text-decoration:underline dotted;cursor:help;border-bottom:0}address{font-style:normal}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-left:0}blockquote,figure{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0}sub{bottom:-.25em}sup{top:-.5em}a{color:#0275d8;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#014c8c;text-decoration:underline}a:not([href]):not([tabindex]),a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}img{vertical-align:middle;border-style:none}svg:not(:root){overflow:hidden}[role=button],a,area,button,input,label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#636c72;caption-side:bottom}button:focus{outline:dotted 1px;outline:-webkit-focus-ring-color auto 5px}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=radio]:disabled,input[type=checkbox]:disabled{cursor:not-allowed}input[type=datetime-local],input[type=month],input[type=date],input[type=time]{-webkit-appearance:listbox}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;font-size:1.5rem;color:inherit;white-space:normal}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}summary{display:list-item}template{display:none}[hidden]{display:none!important}/*# sourceMappingURL=bootstrap-reboot.min.css.map */ -------------------------------------------------------------------------------- /resources/views/pages/about.blade.php: -------------------------------------------------------------------------------- 1 | @extends('template') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |

Tonino De Marco

8 |

Photographer

9 |
10 |
11 | 12 | Tonino De Marco 13 | 14 |
15 |
16 |
17 |
18 |

19 | EN : Image has been Tonino De Marco’s calling, from a very young age. As a child, he was drawn to photography and moving images : movies, advertising, documentries. Long before he could afford his first camera, he was dreaming and admiring photographers such as Art Wolfe. 20 | When he was 21 years old, he started photography as an amateur, and became a professional in the movies industry, as a focus puller. He also worked as a teacher of cinematographic techniques in Paris. 21 | Today he shares his life between movies filming, and long solitary trips to Africa to photograph its incredible wildlife. His images are distributed either by contacting him directly, or through Bios Photo Agency. 22 |

23 |
24 |
25 |

26 | FR : Tonino De Marco est attiré depuis toujours par la photographie et l’image en mouvement – film, publicité, documentaire. Bien avant de pouvoir se payer son premier appareil photo, il rêve et admire le travail de photographes comme Art Wolfe. 27 | A l’âge de 21 ans, il commence à la fois la photographie en amateur, et le cinéma en professionnel, en tant qu’assistant caméra. Il a enseigné également la technique de caméra et de prise de vue. 28 | Aujourd’hui, il partage sa vie entre les tournages, et de longs voyages en solo en Afrique pour photographier les animaux. 29 | Les photographies de Tonino De Marco sont distribuées en le contactant directement, ou via l’agence Bios Photo. 30 |

31 |
32 |
33 | 34 | @if (!$links->isEmpty()) 35 |
36 |
37 |

They inspire me

38 | 43 |
44 | @endif 45 | 46 |
47 | @endsection -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {{ config('app.name', 'Laravel') }} 12 | 13 | 14 | 15 | 16 | 17 | 22 | 23 | 24 |
25 | 80 | 81 | @yield('content') 82 |
83 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session", "token" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | 44 | 'api' => [ 45 | 'driver' => 'token', 46 | 'provider' => 'users', 47 | ], 48 | ], 49 | 50 | /* 51 | |-------------------------------------------------------------------------- 52 | | User Providers 53 | |-------------------------------------------------------------------------- 54 | | 55 | | All authentication drivers have a user provider. This defines how the 56 | | users are actually retrieved out of your database or other storage 57 | | mechanisms used by this application to persist your user's data. 58 | | 59 | | If you have multiple user tables or models you may configure multiple 60 | | sources which represent each model / table. These sources may then 61 | | be assigned to any extra authentication guards you have defined. 62 | | 63 | | Supported: "database", "eloquent" 64 | | 65 | */ 66 | 67 | 'providers' => [ 68 | 'users' => [ 69 | 'driver' => 'eloquent', 70 | 'model' => App\User::class, 71 | ], 72 | 73 | // 'users' => [ 74 | // 'driver' => 'database', 75 | // 'table' => 'users', 76 | // ], 77 | ], 78 | 79 | /* 80 | |-------------------------------------------------------------------------- 81 | | Resetting Passwords 82 | |-------------------------------------------------------------------------- 83 | | 84 | | You may specify multiple password reset configurations if you have more 85 | | than one user table or model in the application and you want to have 86 | | separate password reset settings based on the specific user types. 87 | | 88 | | The expire time is the number of minutes that the reset token should be 89 | | considered valid. This security feature keeps tokens short-lived so 90 | | they have less time to be guessed. You may change this as needed. 91 | | 92 | */ 93 | 94 | 'passwords' => [ 95 | 'users' => [ 96 | 'provider' => 'users', 97 | 'table' => 'password_resets', 98 | 'expire' => 60, 99 | ], 100 | ], 101 | 102 | ]; 103 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Reset Password
9 | 10 |
11 | @if (session('status')) 12 |
13 | {{ session('status') }} 14 |
15 | @endif 16 | 17 |
18 | {{ csrf_field() }} 19 | 20 | 21 | 22 |
23 | 24 | 25 |
26 | 27 | 28 | @if ($errors->has('email')) 29 | 30 | {{ $errors->first('email') }} 31 | 32 | @endif 33 |
34 |
35 | 36 |
37 | 38 | 39 |
40 | 41 | 42 | @if ($errors->has('password')) 43 | 44 | {{ $errors->first('password') }} 45 | 46 | @endif 47 |
48 |
49 | 50 |
51 | 52 |
53 | 54 | 55 | @if ($errors->has('password_confirmation')) 56 | 57 | {{ $errors->first('password_confirmation') }} 58 | 59 | @endif 60 |
61 |
62 | 63 |
64 |
65 | 68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 | @endsection 77 | -------------------------------------------------------------------------------- /resources/views/auth/register.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Register
9 |
10 |
11 | {{ csrf_field() }} 12 | 13 |
14 | 15 | 16 |
17 | 18 | 19 | @if ($errors->has('name')) 20 | 21 | {{ $errors->first('name') }} 22 | 23 | @endif 24 |
25 |
26 | 27 |
28 | 29 | 30 |
31 | 32 | 33 | @if ($errors->has('email')) 34 | 35 | {{ $errors->first('email') }} 36 | 37 | @endif 38 |
39 |
40 | 41 |
42 | 43 | 44 |
45 | 46 | 47 | @if ($errors->has('password')) 48 | 49 | {{ $errors->first('password') }} 50 | 51 | @endif 52 |
53 |
54 | 55 |
56 | 57 | 58 |
59 | 60 |
61 |
62 | 63 |
64 |
65 | 68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 | @endsection 77 | -------------------------------------------------------------------------------- /resources/views/admin/template.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Tonino De Marco 10 | 11 | 17 | 18 | 22 | 23 | 24 | {{ HTML::style('bootstrap/css/bootstrap.min.css') }} 25 | {{-- {{ HTML::style('bootstrap/css/bootstrap-glyphicons.css') }} --}} {{-- Utile ? --}} 26 | {{-- --}} 27 | 28 | {{ HTML::style('css/admin.css') }} 29 | 30 | 31 | 32 | 33 | 34 | 35 | 73 | 74 | 75 | {{-- Debug --}} 76 | {{-- @include('components.viewport') --}} 77 | {{-- @component('components.debug'){{ route prefix }}@endcomponent --}} 78 | 79 | {{-- Content --}} 80 |
81 | 82 | {{-- Feedbacks --}} 83 | @include('components.feedback') 84 | 85 | {{-- Content --}} 86 | @yield('content') 87 | 88 |
89 | 90 | 91 | 92 | @section('scripts') 93 | 94 | 95 | 96 | {{ HTML::script('bootstrap/js/bootstrap.min.js')}} 97 | 98 | {{ HTML::script('js/my.js')}} 99 | 100 | @show 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | PDO::FETCH_OBJ, 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Database Connection Name 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may specify which of the database connections below you wish 24 | | to use as your default connection for all database work. Of course 25 | | you may use many connections at once using the Database library. 26 | | 27 | */ 28 | 29 | 'default' => env('DB_CONNECTION', 'mysql'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Database Connections 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here are each of the database connections setup for your application. 37 | | Of course, examples of configuring each database platform that is 38 | | supported by Laravel is shown below to make development simple. 39 | | 40 | | 41 | | All database work in Laravel is done through the PHP PDO facilities 42 | | so make sure you have the driver for your particular database of 43 | | choice installed on your machine before you begin development. 44 | | 45 | */ 46 | 47 | 'connections' => [ 48 | 49 | 'sqlite' => [ 50 | 'driver' => 'sqlite', 51 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 52 | 'prefix' => '', 53 | ], 54 | 55 | 'mysql' => [ 56 | 'driver' => 'mysql', 57 | 'host' => env('DB_HOST', 'localhost'), 58 | 'port' => env('DB_PORT', '3306'), 59 | 'database' => env('DB_DATABASE', 'forge'), 60 | 'username' => env('DB_USERNAME', 'forge'), 61 | 'password' => env('DB_PASSWORD', ''), 62 | 'charset' => 'utf8', 63 | 'collation' => 'utf8_unicode_ci', 64 | 'prefix' => '', 65 | 'strict' => true, 66 | 'engine' => null, 67 | ], 68 | 69 | 'pgsql' => [ 70 | 'driver' => 'pgsql', 71 | 'host' => env('DB_HOST', 'localhost'), 72 | 'port' => env('DB_PORT', '5432'), 73 | 'database' => env('DB_DATABASE', 'forge'), 74 | 'username' => env('DB_USERNAME', 'forge'), 75 | 'password' => env('DB_PASSWORD', ''), 76 | 'charset' => 'utf8', 77 | 'prefix' => '', 78 | 'schema' => 'public', 79 | 'sslmode' => 'prefer', 80 | ], 81 | 82 | ], 83 | 84 | /* 85 | |-------------------------------------------------------------------------- 86 | | Migration Repository Table 87 | |-------------------------------------------------------------------------- 88 | | 89 | | This table keeps track of all the migrations that have already run for 90 | | your application. Using this information, we can determine which of 91 | | the migrations on disk haven't actually been run in the database. 92 | | 93 | */ 94 | 95 | 'migrations' => 'migrations', 96 | 97 | /* 98 | |-------------------------------------------------------------------------- 99 | | Redis Databases 100 | |-------------------------------------------------------------------------- 101 | | 102 | | Redis is an open source, fast, and advanced key-value store that also 103 | | provides a richer set of commands than a typical key-value systems 104 | | such as APC or Memcached. Laravel makes it easy to dig right in. 105 | | 106 | */ 107 | 108 | 'redis' => [ 109 | 110 | 'cluster' => false, 111 | 112 | 'default' => [ 113 | 'host' => env('REDIS_HOST', 'localhost'), 114 | 'password' => env('REDIS_PASSWORD', null), 115 | 'port' => env('REDIS_PORT', 6379), 116 | 'database' => 0, 117 | ], 118 | 119 | ], 120 | 121 | ]; 122 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_DRIVER', 'smtp'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | SMTP Host Address 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may provide the host address of the SMTP server used by your 27 | | applications. A default option is provided that is compatible with 28 | | the Mailgun mail service which will provide reliable deliveries. 29 | | 30 | */ 31 | 32 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 33 | 34 | /* 35 | |-------------------------------------------------------------------------- 36 | | SMTP Host Port 37 | |-------------------------------------------------------------------------- 38 | | 39 | | This is the SMTP port used by your application to deliver e-mails to 40 | | users of the application. Like the host we have set this value to 41 | | stay compatible with the Mailgun e-mail application by default. 42 | | 43 | */ 44 | 45 | 'port' => env('MAIL_PORT', 587), 46 | 47 | /* 48 | |-------------------------------------------------------------------------- 49 | | Global "From" Address 50 | |-------------------------------------------------------------------------- 51 | | 52 | | You may wish for all e-mails sent by your application to be sent from 53 | | the same address. Here, you may specify a name and address that is 54 | | used globally for all e-mails that are sent by your application. 55 | | 56 | */ 57 | 58 | 'from' => [ 59 | 'address' => 'admin@toninodemarco.com', 60 | 'name' => 'Admin Tonino De Marco', 61 | ], 62 | 63 | /* 64 | |-------------------------------------------------------------------------- 65 | | E-Mail Encryption Protocol 66 | |-------------------------------------------------------------------------- 67 | | 68 | | Here you may specify the encryption protocol that should be used when 69 | | the application send e-mail messages. A sensible default using the 70 | | transport layer security protocol should provide great security. 71 | | 72 | */ 73 | 74 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | SMTP Server Username 79 | |-------------------------------------------------------------------------- 80 | | 81 | | If your SMTP server requires a username for authentication, you should 82 | | set it here. This will get used to authenticate with your server on 83 | | connection. You may also set the "password" value below this one. 84 | | 85 | */ 86 | 87 | 'username' => env('MAIL_USERNAME'), 88 | 89 | /* 90 | |-------------------------------------------------------------------------- 91 | | SMTP Server Password 92 | |-------------------------------------------------------------------------- 93 | | 94 | | Here you may set the password required by your SMTP server to send out 95 | | messages from your application. This will be given to the server on 96 | | connection so that the application will be able to send messages. 97 | | 98 | */ 99 | 100 | 'password' => env('MAIL_PASSWORD'), 101 | 102 | /* 103 | |-------------------------------------------------------------------------- 104 | | Sendmail System Path 105 | |-------------------------------------------------------------------------- 106 | | 107 | | When using the "sendmail" driver to send e-mails, we will need to know 108 | | the path to where Sendmail lives on this server. A default path has 109 | | been provided here, which will work well on most of your systems. 110 | | 111 | */ 112 | 113 | 'sendmail' => '/usr/sbin/sendmail -bs', 114 | 115 | 'from' => ['address' => 'admin@toninodemarco.com', 'name' => 'Administrateur'], 116 | ]; 117 | -------------------------------------------------------------------------------- /resources/assets/sass/laravel/app.css: -------------------------------------------------------------------------------- 1 | /* 2 | Error: File to import not found or unreadable: node_modules/bootstrap-sass/assets/stylesheets/bootstrap. 3 | Load path: D:/ 4 | on line 9 of /Wamp/www/tonino/laravel/resources/assets/sass/app.scss 5 | 6 | 4: 7 | 5: // Variables 8 | 6: @import "variables"; 9 | 7: 10 | 8: // Bootstrap 11 | 9: @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; 12 | 13 | Backtrace: 14 | /Wamp/www/tonino/laravel/resources/assets/sass/app.scss:9 15 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/import_node.rb:67:in `rescue in import' 16 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/import_node.rb:45:in `import' 17 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/import_node.rb:28:in `imported_file' 18 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/import_node.rb:37:in `css_import?' 19 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/perform.rb:314:in `visit_import' 20 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/base.rb:36:in `visit' 21 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/perform.rb:162:in `block in visit' 22 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/stack.rb:79:in `block in with_base' 23 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/stack.rb:135:in `with_frame' 24 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/stack.rb:79:in `with_base' 25 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/perform.rb:162:in `visit' 26 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/base.rb:52:in `block in visit_children' 27 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/base.rb:52:in `map' 28 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/base.rb:52:in `visit_children' 29 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/perform.rb:171:in `block in visit_children' 30 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/perform.rb:183:in `with_environment' 31 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/perform.rb:170:in `visit_children' 32 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/base.rb:36:in `block in visit' 33 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/perform.rb:190:in `visit_root' 34 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/base.rb:36:in `visit' 35 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/perform.rb:161:in `visit' 36 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/visitors/perform.rb:10:in `visit' 37 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/root_node.rb:36:in `css_tree' 38 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/tree/root_node.rb:29:in `render_with_sourcemap' 39 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/engine.rb:389:in `_render_with_sourcemap' 40 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/engine.rb:307:in `render_with_sourcemap' 41 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/plugin/compiler.rb:462:in `update_stylesheet' 42 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/plugin/compiler.rb:215:in `block in update_stylesheets' 43 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/plugin/compiler.rb:209:in `each' 44 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/plugin/compiler.rb:209:in `update_stylesheets' 45 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/plugin/compiler.rb:294:in `watch' 46 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/plugin.rb:109:in `method_missing' 47 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/exec/sass_scss.rb:360:in `watch_or_update' 48 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/exec/sass_scss.rb:51:in `process_result' 49 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/exec/base.rb:52:in `parse' 50 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/lib/sass/exec/base.rb:19:in `parse!' 51 | C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.5.1/bin/sass:13:in `' 52 | C:/Ruby23-x64/bin/sass:22:in `load' 53 | C:/Ruby23-x64/bin/sass:22:in `
' 54 | */ 55 | body:before { 56 | white-space: pre; 57 | font-family: monospace; 58 | content: "Error: File to import not found or unreadable: node_modules/bootstrap-sass/assets/stylesheets/bootstrap.\A Load path: D:/\A on line 9 of /Wamp/www/tonino/laravel/resources/assets/sass/app.scss\A \A 4: \A 5: // Variables\A 6: @import \"variables\";\A 7: \A 8: // Bootstrap\A 9: @import \"node_modules/bootstrap-sass/assets/stylesheets/bootstrap\";"; } 59 | --------------------------------------------------------------------------------