├── hooks
└── hooks.json
├── public
├── favicon.ico
├── robots.txt
├── js
│ └── .DS_Store
├── css
│ ├── .DS_Store
│ └── owl.theme.default.min.css
├── fonts
│ ├── .DS_Store
│ ├── lg
│ │ ├── lg.eot
│ │ ├── lg.ttf
│ │ └── lg.woff
│ ├── flaticon
│ │ ├── font
│ │ │ ├── Flaticon.eot
│ │ │ ├── Flaticon.ttf
│ │ │ ├── Flaticon.woff
│ │ │ ├── flaticon.css
│ │ │ └── _flaticon.scss
│ │ ├── license
│ │ │ └── license.pdf
│ │ └── backup.txt
│ └── icomoon
│ │ ├── fonts
│ │ ├── icomoon.eot
│ │ ├── icomoon.ttf
│ │ └── icomoon.woff
│ │ ├── Read Me.txt
│ │ └── demo-files
│ │ └── demo.js
├── images
│ ├── .DS_Store
│ ├── img_1.jpg
│ ├── img_2.jpg
│ ├── img_3.jpg
│ ├── img_4.jpg
│ ├── img_5.jpg
│ ├── img_6.jpg
│ ├── img_7.jpg
│ ├── person_1.jpg
│ ├── person_2.jpg
│ ├── person_3.jpg
│ ├── person_4.jpg
│ ├── person_5.jpg
│ ├── person_6.jpg
│ ├── hero_bg_1.jpg
│ ├── hero_bg_2.jpg
│ ├── hero_bg_3.jpg
│ ├── nature_small_1.jpg
│ ├── nature_small_2.jpg
│ ├── nature_small_3.jpg
│ ├── nature_small_4.jpg
│ ├── nature_small_5.jpg
│ ├── nature_small_6.jpg
│ ├── nature_small_7.jpg
│ ├── nature_small_8.jpg
│ ├── nature_small_9.jpg
│ └── big-images
│ │ ├── nature_big_1.jpg
│ │ ├── nature_big_2.jpg
│ │ ├── nature_big_3.jpg
│ │ ├── nature_big_4.jpg
│ │ ├── nature_big_5.jpg
│ │ ├── nature_big_6.jpg
│ │ ├── nature_big_7.jpg
│ │ ├── nature_big_8.jpg
│ │ └── nature_big_9.jpg
├── mix-manifest.json
├── .htaccess
└── index.php
├── database
├── .gitignore
├── seeds
│ ├── AlbumTableSeeder.php
│ ├── PhotoTableSeeder.php
│ ├── DatabaseSeeder.php
│ ├── SettingTableSeeder.php
│ ├── contactinfoTableSeeder.php
│ └── TeamSeeder.php
├── factories
│ ├── AlbumFactory.php
│ ├── ContactinfoFactory.php
│ ├── TeamFactory.php
│ ├── ServiceFactory.php
│ ├── PhotoFactory.php
│ └── UserFactory.php
└── migrations
│ ├── 2019_01_24_061628_add_slug_to_settings_table.php
│ ├── 2014_10_12_100000_create_password_resets_table.php
│ ├── 2019_01_11_082631_add_email_varification_token_to_users.php
│ ├── 2018_12_21_153932_create_albums_table.php
│ ├── 2019_01_24_060147_create_settings_table.php
│ ├── 2019_01_11_135547_create_contact_infos_table.php
│ ├── 2019_01_10_152707_create_teams_table.php
│ ├── 2019_01_11_051806_create_services_table.php
│ ├── 2014_10_12_000000_create_users_table.php
│ └── 2018_12_22_071952_create_photos_table.php
├── bootstrap
├── cache
│ └── .gitignore
└── app.php
├── storage
├── logs
│ └── .gitignore
├── app
│ ├── public
│ │ └── .gitignore
│ └── .gitignore
└── framework
│ ├── testing
│ └── .gitignore
│ ├── views
│ └── .gitignore
│ ├── cache
│ ├── data
│ │ └── .gitignore
│ └── .gitignore
│ ├── sessions
│ └── .gitignore
│ └── .gitignore
├── Procfile
├── resources
├── views
│ ├── vendor
│ │ └── mail
│ │ │ ├── markdown
│ │ │ ├── panel.blade.php
│ │ │ ├── table.blade.php
│ │ │ ├── footer.blade.php
│ │ │ ├── promotion.blade.php
│ │ │ ├── subcopy.blade.php
│ │ │ ├── button.blade.php
│ │ │ ├── header.blade.php
│ │ │ ├── promotion
│ │ │ │ └── button.blade.php
│ │ │ ├── layout.blade.php
│ │ │ └── message.blade.php
│ │ │ └── html
│ │ │ ├── table.blade.php
│ │ │ ├── header.blade.php
│ │ │ ├── subcopy.blade.php
│ │ │ ├── promotion.blade.php
│ │ │ ├── footer.blade.php
│ │ │ ├── panel.blade.php
│ │ │ ├── promotion
│ │ │ └── button.blade.php
│ │ │ ├── message.blade.php
│ │ │ └── button.blade.php
│ ├── email
│ │ └── contact.blade.php
│ ├── components
│ │ └── breadcrumb.blade.php
│ ├── partials
│ │ └── alert.blade.php
│ ├── auth
│ │ ├── verify.blade.php
│ │ └── passwords
│ │ │ └── email.blade.php
│ ├── frontend
│ │ ├── auth
│ │ │ ├── password-reset-token.blade.php
│ │ │ ├── mail-verify-again.blade.php
│ │ │ ├── login.blade.php
│ │ │ ├── password-reset.blade.php
│ │ │ └── register.blade.php
│ │ ├── index.blade.php
│ │ ├── gallery.blade.php
│ │ ├── service.blade.php
│ │ ├── single.blade.php
│ │ └── about.blade.php
│ ├── album
│ │ ├── create.blade.php
│ │ ├── edit.blade.php
│ │ ├── index.blade.php
│ │ └── show.blade.php
│ ├── backend
│ │ ├── layouts
│ │ │ └── app.blade.php
│ │ ├── role
│ │ │ ├── index.blade.php
│ │ │ ├── create.blade.php
│ │ │ ├── show.blade.php
│ │ │ └── edit.blade.php
│ │ ├── contactinfo
│ │ │ ├── index.blade.php
│ │ │ ├── create.blade.php
│ │ │ ├── show.blade.php
│ │ │ └── edit.blade.php
│ │ ├── album
│ │ │ ├── index.blade.php
│ │ │ ├── create.blade.php
│ │ │ ├── show.blade.php
│ │ │ └── edit.blade.php
│ │ ├── permission
│ │ │ ├── index.blade.php
│ │ │ ├── create.blade.php
│ │ │ ├── show.blade.php
│ │ │ └── edit.blade.php
│ │ ├── service
│ │ │ ├── index.blade.php
│ │ │ ├── show.blade.php
│ │ │ └── create.blade.php
│ │ ├── photo
│ │ │ ├── index.blade.php
│ │ │ ├── show.blade.php
│ │ │ └── create.blade.php
│ │ ├── team
│ │ │ ├── index.blade.php
│ │ │ ├── show.blade.php
│ │ │ ├── create.blade.php
│ │ │ └── edit.blade.php
│ │ ├── settings
│ │ │ ├── index.blade.php
│ │ │ ├── create.blade.php
│ │ │ ├── edit.blade.php
│ │ │ └── show.blade.php
│ │ ├── users
│ │ │ ├── index.blade.php
│ │ │ ├── create.blade.php
│ │ │ ├── show.blade.php
│ │ │ └── edit.blade.php
│ │ └── user
│ │ │ └── profile.blade.php
│ └── single.blade.php
├── sass
│ ├── app.scss
│ ├── backend
│ │ ├── app.scss
│ │ └── _variables.scss
│ └── _variables.scss
├── lang
│ └── en
│ │ ├── pagination.php
│ │ ├── auth.php
│ │ └── passwords.php
└── js
│ ├── components
│ └── ExampleComponent.vue
│ ├── app.js
│ ├── backend
│ ├── app.js
│ └── bootstrap.js
│ └── bootstrap.js
├── .gitattributes
├── .gitignore
├── tests
├── TestCase.php
├── Unit
│ └── ExampleTest.php
├── Feature
│ └── ExampleTest.php
└── CreatesApplication.php
├── app
├── Role.php
├── Team.php
├── Setting.php
├── ContactInfo.php
├── Permission.php
├── Service.php
├── Http
│ ├── Middleware
│ │ ├── EncryptCookies.php
│ │ ├── CheckForMaintenanceMode.php
│ │ ├── TrimStrings.php
│ │ ├── TrustProxies.php
│ │ ├── Authenticate.php
│ │ ├── VerifyCsrfToken.php
│ │ └── RedirectIfAuthenticated.php
│ └── Controllers
│ │ ├── Controller.php
│ │ ├── HomeController.php
│ │ └── FrontendController.php
├── Album.php
├── Providers
│ ├── BroadcastServiceProvider.php
│ ├── AuthServiceProvider.php
│ ├── AppServiceProvider.php
│ ├── EventServiceProvider.php
│ └── RouteServiceProvider.php
├── Photo.php
├── Mail
│ └── ContactForm.php
├── User.php
├── Console
│ └── Kernel.php
├── Exceptions
│ └── Handler.php
└── Notifications
│ ├── PasswordResetNotify.php
│ ├── VerifyMail.php
│ └── NewUserNotification.php
├── .editorconfig
├── routes
├── channels.php
├── api.php
└── console.php
├── server.php
├── webpack.mix.js
├── .env.example
├── config
├── view.php
├── laratrust_seeder.php
├── services.php
├── hashing.php
├── broadcasting.php
└── filesystems.php
├── phpunit.xml
├── package.json
├── README.md
├── artisan
└── composer.json
/hooks/hooks.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite
2 |
--------------------------------------------------------------------------------
/bootstrap/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/logs/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow:
3 |
--------------------------------------------------------------------------------
/storage/app/public/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/Procfile:
--------------------------------------------------------------------------------
1 | web: vendor/bin/heroku-php-apache2 public/
2 |
--------------------------------------------------------------------------------
/storage/app/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !public/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/storage/framework/testing/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/views/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/cache/data/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/sessions/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/resources/views/vendor/mail/markdown/panel.blade.php:
--------------------------------------------------------------------------------
1 | {{ $slot }}
2 |
--------------------------------------------------------------------------------
/resources/views/vendor/mail/markdown/table.blade.php:
--------------------------------------------------------------------------------
1 | {{ $slot }}
2 |
--------------------------------------------------------------------------------
/storage/framework/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !data/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/resources/views/vendor/mail/markdown/footer.blade.php:
--------------------------------------------------------------------------------
1 | {{ $slot }}
2 |
--------------------------------------------------------------------------------
/resources/views/vendor/mail/markdown/promotion.blade.php:
--------------------------------------------------------------------------------
1 | {{ $slot }}
2 |
--------------------------------------------------------------------------------
/resources/views/vendor/mail/markdown/subcopy.blade.php:
--------------------------------------------------------------------------------
1 | {{ $slot }}
2 |
--------------------------------------------------------------------------------
/resources/views/vendor/mail/markdown/button.blade.php:
--------------------------------------------------------------------------------
1 | {{ $slot }}: {{ $url }}
2 |
--------------------------------------------------------------------------------
/resources/views/vendor/mail/markdown/header.blade.php:
--------------------------------------------------------------------------------
1 | [{{ $slot }}]({{ $url }})
2 |
--------------------------------------------------------------------------------
/resources/views/vendor/mail/markdown/promotion/button.blade.php:
--------------------------------------------------------------------------------
1 | [{{ $slot }}]({{ $url }})
2 |
--------------------------------------------------------------------------------
/public/js/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/js/.DS_Store
--------------------------------------------------------------------------------
/public/css/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/css/.DS_Store
--------------------------------------------------------------------------------
/public/fonts/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/fonts/.DS_Store
--------------------------------------------------------------------------------
/public/fonts/lg/lg.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/fonts/lg/lg.eot
--------------------------------------------------------------------------------
/public/fonts/lg/lg.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/fonts/lg/lg.ttf
--------------------------------------------------------------------------------
/public/fonts/lg/lg.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/fonts/lg/lg.woff
--------------------------------------------------------------------------------
/public/images/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/.DS_Store
--------------------------------------------------------------------------------
/public/images/img_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/img_1.jpg
--------------------------------------------------------------------------------
/public/images/img_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/img_2.jpg
--------------------------------------------------------------------------------
/public/images/img_3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/img_3.jpg
--------------------------------------------------------------------------------
/public/images/img_4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/img_4.jpg
--------------------------------------------------------------------------------
/public/images/img_5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/img_5.jpg
--------------------------------------------------------------------------------
/public/images/img_6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/img_6.jpg
--------------------------------------------------------------------------------
/public/images/img_7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/img_7.jpg
--------------------------------------------------------------------------------
/public/images/person_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/person_1.jpg
--------------------------------------------------------------------------------
/public/images/person_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/person_2.jpg
--------------------------------------------------------------------------------
/public/images/person_3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/person_3.jpg
--------------------------------------------------------------------------------
/public/images/person_4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/person_4.jpg
--------------------------------------------------------------------------------
/public/images/person_5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/person_5.jpg
--------------------------------------------------------------------------------
/public/images/person_6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/person_6.jpg
--------------------------------------------------------------------------------
/public/images/hero_bg_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/hero_bg_1.jpg
--------------------------------------------------------------------------------
/public/images/hero_bg_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/hero_bg_2.jpg
--------------------------------------------------------------------------------
/public/images/hero_bg_3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tawhidulIKhan/laravel-photogallery/HEAD/public/images/hero_bg_3.jpg
--------------------------------------------------------------------------------
/resources/views/vendor/mail/html/table.blade.php:
--------------------------------------------------------------------------------
1 |
15 |
16 |
17 | @include('backend.layouts.partials.header')
18 |
19 | @include('backend.layouts.partials.sidebar')
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | @yield('content')
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/resources/views/frontend/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('frontend.layouts.app')
2 | @section('content')
3 |
4 |
5 |
6 |
7 |
8 |
9 | @if(count($albums) > 0)
10 | @foreach($albums as $album)
11 |
12 |
13 |
17 |
 }})
18 |
19 |
20 | @endforeach
21 | @endif
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | @endsection
--------------------------------------------------------------------------------
/config/view.php:
--------------------------------------------------------------------------------
1 | [
17 | resource_path('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' => env(
32 | 'VIEW_COMPILED_PATH',
33 | realpath(storage_path('framework/views'))
34 | ),
35 |
36 | ];
37 |
--------------------------------------------------------------------------------
/config/laratrust_seeder.php:
--------------------------------------------------------------------------------
1 | [
5 | 'superadministrator' => [
6 | 'users' => 'c,r,u,d',
7 | 'albums' => 'c,r,u,d',
8 | 'photos' => 'c,r,u,d',
9 | 'teams' => 'c,r,u,d',
10 | 'services' => 'c,r,u,d',
11 | 'contactinfos' => 'c,r,u,d',
12 | 'acl' => 'c,r,u,d',
13 | 'profile' => 'r,u'
14 | ],
15 | 'administrator' => [
16 | 'users' => 'c,r,u,d',
17 | 'albums' => 'c,r,u,d',
18 | 'photos' => 'c,r,u,d',
19 | 'teams' => 'c,r,u,d',
20 | 'services' => 'c,r,u,d',
21 | 'contactinfos' => 'c,r,u,d',
22 | 'profile' => 'r,u'
23 | ],
24 | 'contributor' => [
25 | 'profile' => 'r,u',
26 | 'albums' => 'c,r,u,d',
27 | 'photos' => 'c,r,u,d',
28 | ],
29 | ],
30 | 'permission_structure' => [
31 | 'cru_user' => [
32 | 'profile' => 'c,r,u',
33 | ],
34 | ],
35 | 'permissions_map' => [
36 | 'c' => 'create',
37 | 'r' => 'read',
38 | 'u' => 'update',
39 | 'd' => 'delete'
40 | ]
41 | ];
42 |
--------------------------------------------------------------------------------
/resources/views/frontend/auth/mail-verify-again.blade.php:
--------------------------------------------------------------------------------
1 | @extends('frontend.layouts.app')
2 | @section('content')
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | {{ photon_notification($errors) }}
11 |
12 |
13 |
Your email is not verified
14 |
15 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | @endsection
31 |
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 | ./tests/Unit
14 |
15 |
16 |
17 | ./tests/Feature
18 |
19 |
20 |
21 |
22 | ./app
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/resources/views/album/edit.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 |
3 | @section('content')
4 |
5 |
6 |
7 |
Create album
8 |
9 | @if ($errors->any())
10 |
11 | @foreach ($errors->all() as $error)
12 |
{{ $error }}
13 | @endforeach
14 |
15 |
16 | @endif
17 |
40 |
41 |
42 | @endsection
43 |
--------------------------------------------------------------------------------
/resources/views/frontend/gallery.blade.php:
--------------------------------------------------------------------------------
1 | @extends('frontend.layouts.app')
2 | @section('content')
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
{{ $title }} Gallery
13 |
14 |
15 |
16 |
17 |
18 |
19 | @if (count($photos) > 0)
20 | @foreach ($photos as $photo)
21 |
22 |
31 |
32 | @endforeach
33 | @endif
34 |
35 |
36 |
37 | @endsection
--------------------------------------------------------------------------------
/app/Exceptions/Handler.php:
--------------------------------------------------------------------------------
1 | $faker->imageUrl(400,300,'people'),
18 | 'name' => 'John Doe',
19 | 'slug' => str_slug('John Doe'),
20 | 'description' => 'Lorem ipsum dolor sit, amet consectetur adipisicing elit. Incidunt alias animi cupiditate.'
21 | ]);
22 |
23 | Team::create([
24 | 'thumbnail' => $faker->imageUrl(400,300,'people'),
25 | 'name' => 'John Rosella',
26 | 'slug' => str_slug('John Rosella'),
27 | 'description' => 'Lorem ipsum dolor sit, amet consectetur adipisicing elit. Incidunt alias animi cupiditate.'
28 | ]);
29 |
30 | Team::create([
31 | 'thumbnail' => $faker->imageUrl(400,300,'people'),
32 | 'name' => 'John Foo',
33 | 'slug' => str_slug('John Foo'),
34 | 'description' => 'Lorem ipsum dolor sit, amet consectetur adipisicing elit. Incidunt alias animi cupiditate.'
35 | ]);
36 | //
37 | }
38 |
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/resources/views/backend/role/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('backend.layouts.app')
2 |
3 |
4 | @section('content')
5 |
6 | @breadcrumb()
7 |
roles
8 | @endbreadcrumb
9 |
10 |
11 |
12 |
All roles
13 |
14 | {{ photon_notification($errors)}}
15 |
16 | @if (count($roles) > 0 )
17 |
18 |
19 |
20 | | Id |
21 | Name |
22 | Description |
23 | details |
24 |
25 |
26 | @foreach ($roles as $role)
27 |
28 | |
29 | {{ $role->id }}
30 | |
31 |
32 |
33 | {{ $role->display_name }}
34 | |
35 |
36 |
37 | {{ $role->description }}
38 | |
39 |
40 |
41 | Details
42 | |
43 |
44 |
45 | @endforeach
46 |
47 | @else
48 |
49 |
No role found yet
50 |
51 | @endif
52 |
53 |
54 | @endsection
55 |
--------------------------------------------------------------------------------
/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": "npm run development -- --watch",
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.18",
14 | "bootstrap": "^4.0.0",
15 | "cross-env": "^5.1",
16 | "jquery": "^3.2",
17 | "laravel-mix": "^4.0.7",
18 | "lodash": "^4.17.5",
19 | "popper.js": "^1.12",
20 | "resolve-url-loader": "^2.3.1",
21 | "sass": "^1.15.2",
22 | "sass-loader": "^7.1.0",
23 | "vue": "^2.5.17",
24 | "vue-template-compiler": "^2.5.21"
25 | },
26 | "dependencies": {
27 | "@fortawesome/fontawesome-free": "^5.6.3"
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/resources/views/backend/contactinfo/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('backend.layouts.app')
2 |
3 | @section('content')
4 |
5 |
6 | @breadcrumb()
7 |
Contact infos
8 | @endbreadcrumb
9 |
10 |
11 |
All infos
12 | {{ photon_notification($errors)}}
13 |
14 | @if (count($infos) > 0 )
15 |
16 |
17 | | Id |
18 | Title |
19 | Description |
20 | details |
21 |
22 |
23 | @foreach ($infos as $info)
24 |
25 | |
26 | {{ $info->id }}
27 | |
28 |
29 |
30 | {{ $info->title }}
31 | |
32 |
33 |
34 | {{ $info->description }}
35 | |
36 |
37 |
38 | Details
39 | |
40 |
41 |
42 | @endforeach
43 |
44 | @else
45 |
46 |
No album found yet
47 |
48 | @endif
49 |
50 |
51 | @endsection
52 |
--------------------------------------------------------------------------------
/config/services.php:
--------------------------------------------------------------------------------
1 | [
18 | 'domain' => env('MAILGUN_DOMAIN'),
19 | 'secret' => env('MAILGUN_SECRET'),
20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
21 | ],
22 |
23 | 'ses' => [
24 | 'key' => env('SES_KEY'),
25 | 'secret' => env('SES_SECRET'),
26 | 'region' => env('SES_REGION', 'us-east-1'),
27 | ],
28 |
29 | 'sparkpost' => [
30 | 'secret' => env('SPARKPOST_SECRET'),
31 | ],
32 |
33 | 'stripe' => [
34 | 'model' => App\User::class,
35 | 'key' => env('STRIPE_KEY'),
36 | 'secret' => env('STRIPE_SECRET'),
37 | 'webhook' => [
38 | 'secret' => env('STRIPE_WEBHOOK_SECRET'),
39 | 'tolerance' => env('STRIPE_WEBHOOK_TOLERANCE', 300),
40 | ],
41 | ],
42 |
43 | ];
44 |
--------------------------------------------------------------------------------
/resources/views/backend/album/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('backend.layouts.app')
2 |
3 |
4 | @section('content')
5 |
6 | @breadcrumb()
7 |
Albums
8 | @endbreadcrumb
9 |
10 |
11 |
12 |
All Albums
13 |
14 |
15 | {{ photon_notification($errors)}}
16 |
17 | @if (count($albums) > 0 )
18 |
19 |
20 |
21 | | Id |
22 | Banner |
23 | Name |
24 | details |
25 |
26 |
27 | @foreach ($albums as $album)
28 |
29 | |
30 | {{ $album->id }}
31 | |
32 |
33 |
34 | |
35 |
36 |
37 | {{ $album->name }}
38 | |
39 |
40 |
41 | Details
42 | |
43 |
44 |
45 | @endforeach
46 |
47 | @else
48 |
49 |
No album found yet
50 |
51 | @endif
52 |
53 |
54 | @endsection
55 |
--------------------------------------------------------------------------------
/resources/views/backend/permission/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('backend.layouts.app')
2 |
3 |
4 | @section('content')
5 |
6 | @breadcrumb()
7 |
Permissions
8 | @endbreadcrumb
9 |
10 |
11 |
12 |
All Permissions
13 |
14 |
15 | {{ photon_notification($errors)}}
16 |
17 | @if (count($permissions) > 0 )
18 |
19 |
20 |
21 | | Id |
22 | Name |
23 | Description |
24 | details |
25 |
26 |
27 | @foreach ($permissions as $permission)
28 |
29 | |
30 | {{ $permission->id }}
31 | |
32 |
33 |
34 | {{ $permission->display_name }}
35 | |
36 |
37 |
38 | {{ $permission->description }}
39 | |
40 |
41 |
42 | Details
43 | |
44 |
45 |
46 | @endforeach
47 |
48 | @else
49 |
50 |
No permission found yet
51 |
52 | @endif
53 |
54 |
55 | @endsection
56 |
--------------------------------------------------------------------------------
/resources/views/backend/service/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('backend.layouts.app')
2 |
3 | @section('content')
4 |
5 | @breadcrumb()
6 |
Services
7 | @endbreadcrumb
8 |
9 |
10 |
All Services
11 |
12 | {{ photon_notification($errors) }}
13 |
14 | @if (count($ourservices) > 0 )
15 |
16 |
17 | | Id |
18 | Image |
19 | Title |
20 | details |
21 |
22 |
23 | @foreach ($ourservices as $service)
24 |
25 | |
26 | {{ $service->id }}
27 | |
28 |
29 |
30 | |
31 |
32 |
33 | {{ $service->title }}
34 | |
35 |
36 |
37 | Details
38 | |
39 |
40 |
41 | @endforeach
42 |
43 | @else
44 |
45 |
No photo found yet
46 |
47 | @endif
48 |
49 |
50 | @endsection
51 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Laravel Photo Gallery
2 |
3 | [Live Demo](https://salty-plateau-43077.herokuapp.com/)
4 |
5 | **Laravel Photo Gallery** is a photo uploading application.
6 | Colorlib Template Photon used as Frontend HTML Template
7 |
8 | ### Installation
9 |
10 | - `git clone https://github.com/tawhid-coder/laravel-photogallery.git photogallery`
11 | - `cd photogallery`
12 | - `cp .env.example .env`
13 | - `composer install`
14 | - `php artisan key:generate`
15 | - Create a database and inform _.env_
16 | - Set APP_URL , APP_NAME to \*.env\_
17 | - `php artisan migrate --seed` to create and populate tables
18 | - Inform _config/mail.php_ for email sends
19 | - `php artisan serve` to start the app on http://localhost:8000/
20 |
21 | ### Features
22 |
23 | - Home page
24 | - About Page
25 | - Service Page
26 | - Contact Page
27 | - Authentication (registration, login, logout, password reset, mail confirmation)
28 | - Users roles : roles,permission (Laratrust Package)
29 | - Album Create Option
30 | - Photo Upload Option
31 | - Admin dashboard
32 |
33 | ### Packages included
34 |
35 | - laratrust
36 |
37 | ### Tricks
38 |
39 | To test application the database is seeding with users :
40 |
41 | - Administrator : email = superadministrator@app.com, password = password
42 | - Redactor : email = administrator@app.com, password = password
43 | - Contributor : email = contributor@app.com, password = password
44 |
--------------------------------------------------------------------------------
/public/fonts/flaticon/font/flaticon.css:
--------------------------------------------------------------------------------
1 | /*
2 | Flaticon icon font: Flaticon
3 | Creation date: 07/12/2018 03:18
4 | */
5 |
6 | @font-face {
7 | font-family: "Flaticon";
8 | src: url("./Flaticon.eot");
9 | src: url("./Flaticon.eot?#iefix") format("embedded-opentype"),
10 | url("./Flaticon.woff") format("woff"),
11 | url("./Flaticon.ttf") format("truetype"),
12 | url("./Flaticon.svg#Flaticon") format("svg");
13 | font-weight: normal;
14 | font-style: normal;
15 | }
16 |
17 | @media screen and (-webkit-min-device-pixel-ratio:0) {
18 | @font-face {
19 | font-family: "Flaticon";
20 | src: url("./Flaticon.svg#Flaticon") format("svg");
21 | }
22 | }
23 |
24 | [class^="flaticon-"]:before, [class*=" flaticon-"]:before,
25 | [class^="flaticon-"]:after, [class*=" flaticon-"]:after {
26 | font-family: Flaticon;
27 |
28 | font-style: normal;
29 | font-weight: normal;
30 | font-variant: normal;
31 | text-transform: none;
32 | line-height: 1;
33 |
34 | /* Better Font Rendering =========== */
35 | -webkit-font-smoothing: antialiased;
36 | -moz-osx-font-smoothing: grayscale;
37 | }
38 |
39 | .flaticon-camera:before { content: "\f100"; }
40 | .flaticon-picture:before { content: "\f101"; }
41 | .flaticon-sheep:before { content: "\f102"; }
42 | .flaticon-frame:before { content: "\f103"; }
43 | .flaticon-eiffel-tower:before { content: "\f104"; }
44 | .flaticon-video-play:before { content: "\f105"; }
--------------------------------------------------------------------------------
/resources/views/backend/photo/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('backend.layouts.app')
2 |
3 | @section('content')
4 | @breadcrumb()
5 |
Photo
6 | @endbreadcrumb
7 |
8 |
9 |
10 |
All Photos
11 | {{ photon_notification($errors)}}
12 |
13 | @if (count($photos) > 0 )
14 |
15 |
16 | | Id |
17 | Image |
18 | Title |
19 | details |
20 |
21 |
22 | @foreach ($photos as $photo)
23 |
24 | |
25 | {{ $photo->id }}
26 | |
27 |
28 |
29 | |
30 |
31 |
32 | {{ $photo->title }}
33 | |
34 |
35 |
36 | Details
37 | |
38 |
39 |
40 | @endforeach
41 |
42 |
43 | {{ $photos->links()}}
44 | @else
45 |
46 |
No photo found yet
47 |
48 | @endif
49 |
50 |
51 | @endsection
52 |
--------------------------------------------------------------------------------
/resources/views/backend/team/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('backend.layouts.app')
2 |
3 | @section('content')
4 |
5 | @breadcrumb()
6 |
Teams
7 | @endbreadcrumb
8 |
9 |
10 |
11 |
12 |
All Teams
13 | {{ photon_notification($errors)}}
14 |
15 | @if (count($teams) > 0 )
16 |
17 |
18 | | Id |
19 | Thumbnail |
20 | Name |
21 | Description |
22 | details |
23 |
24 |
25 | @foreach ($teams as $team)
26 |
27 | |
28 | {{ $team->id }}
29 | |
30 |
31 |
32 | |
33 |
34 |
35 | {{ $team->name }}
36 | |
37 |
38 |
39 | {{ $team->description }}
40 | |
41 |
42 |
43 | Details
44 | |
45 |
46 |
47 | @endforeach
48 |
49 | @else
50 |
51 |
No album found yet
52 |
53 | @endif
54 |
55 |
56 | @endsection
57 |
--------------------------------------------------------------------------------
/resources/views/album/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 |
3 | @section('content')
4 |
5 |
6 |
7 |
Create album
8 |
9 | @if ($errors->any())
10 |
11 | @foreach ($errors->all() as $error)
12 |
{{ $error }}
13 | @endforeach
14 |
15 |
16 | @endif
17 |
18 | @if (session('status'))
19 |
20 | {{ session('status') }}
21 |
22 |
23 | @endif
24 | @if (count($albums) > 0 )
25 |
26 |
27 | | Id |
28 | Name |
29 | Banner |
30 | details |
31 |
32 |
33 | @foreach ($albums as $album)
34 |
35 | |
36 | {{ $album->id }}
37 | |
38 |
39 |
40 | {{ $album->name }}
41 | |
42 |
43 |
44 |
45 | |
46 |
47 | Details
48 | |
49 |
50 |
51 | @endforeach
52 |
53 | @else
54 |
55 |
No album found yet
56 |
57 | @endif
58 |
59 |
60 | @endsection
61 |
--------------------------------------------------------------------------------
/resources/views/backend/album/create.blade.php:
--------------------------------------------------------------------------------
1 | @extends('backend.layouts.app')
2 |
3 | @section('content')
4 |
5 |
6 | @breadcrumb()
7 |
8 | Albums
9 |
10 |
Create
11 | @endbreadcrumb
12 |
13 |
14 |
15 |
16 |
49 |
50 |
51 | @endsection
52 |
--------------------------------------------------------------------------------
/app/Notifications/PasswordResetNotify.php:
--------------------------------------------------------------------------------
1 | token = $token;
24 | }
25 |
26 | /**
27 | * Get the notification's delivery channels.
28 | *
29 | * @param mixed $notifiable
30 | * @return array
31 | */
32 | public function via($notifiable)
33 | {
34 | return ['mail'];
35 | }
36 |
37 | /**
38 | * Get the mail representation of the notification.
39 | *
40 | * @param mixed $notifiable
41 | * @return \Illuminate\Notifications\Messages\MailMessage
42 | */
43 | public function toMail($notifiable)
44 | {
45 | return (new MailMessage)
46 | ->line('To Reset your apssword click below link')
47 | ->action('Notification Action', route('passwordReset',$this->token))
48 | ->line('Thank you for using our application!');
49 | }
50 |
51 | /**
52 | * Get the array representation of the notification.
53 | *
54 | * @param mixed $notifiable
55 | * @return array
56 | */
57 | public function toArray($notifiable)
58 | {
59 | return [
60 | //
61 | ];
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/public/fonts/flaticon/font/_flaticon.scss:
--------------------------------------------------------------------------------
1 | /*
2 | Flaticon icon font: Flaticon
3 | Creation date: 07/12/2018 03:18
4 | */
5 |
6 | @font-face {
7 | font-family: "Flaticon";
8 | src: url("./Flaticon.eot");
9 | src: url("./Flaticon.eot?#iefix") format("embedded-opentype"),
10 | url("./Flaticon.woff") format("woff"),
11 | url("./Flaticon.ttf") format("truetype"),
12 | url("./Flaticon.svg#Flaticon") format("svg");
13 | font-weight: normal;
14 | font-style: normal;
15 | }
16 |
17 | @media screen and (-webkit-min-device-pixel-ratio:0) {
18 | @font-face {
19 | font-family: "Flaticon";
20 | src: url("./Flaticon.svg#Flaticon") format("svg");
21 | }
22 | }
23 |
24 | .fi:before{
25 | display: inline-block;
26 | font-family: "Flaticon";
27 | font-style: normal;
28 | font-weight: normal;
29 | font-variant: normal;
30 | line-height: 1;
31 | text-decoration: inherit;
32 | text-rendering: optimizeLegibility;
33 | text-transform: none;
34 | -moz-osx-font-smoothing: grayscale;
35 | -webkit-font-smoothing: antialiased;
36 | font-smoothing: antialiased;
37 | }
38 |
39 | .flaticon-camera:before { content: "\f100"; }
40 | .flaticon-picture:before { content: "\f101"; }
41 | .flaticon-sheep:before { content: "\f102"; }
42 | .flaticon-frame:before { content: "\f103"; }
43 | .flaticon-eiffel-tower:before { content: "\f104"; }
44 | .flaticon-video-play:before { content: "\f105"; }
45 |
46 | $font-Flaticon-camera: "\f100";
47 | $font-Flaticon-picture: "\f101";
48 | $font-Flaticon-sheep: "\f102";
49 | $font-Flaticon-frame: "\f103";
50 | $font-Flaticon-eiffel-tower: "\f104";
51 | $font-Flaticon-video-play: "\f105";
--------------------------------------------------------------------------------
/resources/views/backend/permission/create.blade.php:
--------------------------------------------------------------------------------
1 | @extends('backend.layouts.app')
2 |
3 | @section('content')
4 |
5 |
6 | @breadcrumb()
7 |