From 7d8c24e91168503d83d899c5aa5c87f5bb32507f Mon Sep 17 00:00:00 2001 From: merdiano Date: Sat, 15 Dec 2018 16:45:08 +0500 Subject: [PATCH] backpack installed addons permission manager, settings, backups, pages Created Events,Categories, Countries CRUD --- app/Models/Category.php | 1 + app/Models/Country.php | 2 +- app/Models/Currency.php | 1 + app/Models/DateFormat.php | 1 + app/Models/DateTimeFormat.php | 1 + app/Models/Event.php | 2 +- app/Models/EventImage.php | 1 + app/Models/EventStats.php | 1 + app/Models/Order.php | 2 +- app/Models/OrderItem.php | 1 + app/Models/OrderStatus.php | 1 + app/Models/Organiser.php | 1 + app/Models/User.php | 4 +- composer.json | 6 +- composer.lock | 633 +++++++++++++++++- config/backpack/base.php | 2 +- .../base/inc/sidebar_content.blade.php | 17 +- routes/backpack/custom.php | 5 +- 18 files changed, 673 insertions(+), 9 deletions(-) diff --git a/app/Models/Category.php b/app/Models/Category.php index d0ff10b8..a3ab8675 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -11,6 +11,7 @@ namespace App\Models; class Category extends \Illuminate\Database\Eloquent\Model { + use \Backpack\CRUD\CrudTrait; /** * Indicates whether the model should be timestamped. * diff --git a/app/Models/Country.php b/app/Models/Country.php index a03247a4..79b3f907 100644 --- a/app/Models/Country.php +++ b/app/Models/Country.php @@ -4,5 +4,5 @@ namespace App\Models; class Country extends \Illuminate\Database\Eloquent\Model { - + use \Backpack\CRUD\CrudTrait; } \ No newline at end of file diff --git a/app/Models/Currency.php b/app/Models/Currency.php index 565d34e8..381fcb3a 100644 --- a/app/Models/Currency.php +++ b/app/Models/Currency.php @@ -13,6 +13,7 @@ namespace App\Models; */ class Currency extends \Illuminate\Database\Eloquent\Model { + use \Backpack\CRUD\CrudTrait; /** * Indicates whether the model should be timestamped. * diff --git a/app/Models/DateFormat.php b/app/Models/DateFormat.php index 11a8007c..c4fae65b 100644 --- a/app/Models/DateFormat.php +++ b/app/Models/DateFormat.php @@ -13,6 +13,7 @@ namespace App\Models; */ class DateFormat extends \Illuminate\Database\Eloquent\Model { + use \Backpack\CRUD\CrudTrait; /** * Indicates whether the model should be timestamped. * diff --git a/app/Models/DateTimeFormat.php b/app/Models/DateTimeFormat.php index 51097c77..ec188d02 100644 --- a/app/Models/DateTimeFormat.php +++ b/app/Models/DateTimeFormat.php @@ -13,6 +13,7 @@ namespace App\Models; */ class DateTimeFormat extends \Illuminate\Database\Eloquent\Model { + use \Backpack\CRUD\CrudTrait; /** * Indicates whether the model should be timestamped. * diff --git a/app/Models/Event.php b/app/Models/Event.php index 154986ef..1ae0a57e 100644 --- a/app/Models/Event.php +++ b/app/Models/Event.php @@ -10,7 +10,7 @@ use URL; class Event extends MyBaseModel { use SoftDeletes; - + use \Backpack\CRUD\CrudTrait; protected $dates = ['start_date', 'end_date', 'on_sale_date']; /** diff --git a/app/Models/EventImage.php b/app/Models/EventImage.php index 2db11025..dd3cfa0e 100644 --- a/app/Models/EventImage.php +++ b/app/Models/EventImage.php @@ -13,5 +13,6 @@ namespace App\Models; */ class EventImage extends MyBaseModel { + use \Backpack\CRUD\CrudTrait; //put your code here. } diff --git a/app/Models/EventStats.php b/app/Models/EventStats.php index d82f7397..de16e61e 100644 --- a/app/Models/EventStats.php +++ b/app/Models/EventStats.php @@ -7,6 +7,7 @@ use DB; class EventStats extends \Illuminate\Database\Eloquent\Model { + use \Backpack\CRUD\CrudTrait; /** * Indicates if the model should be timestamped. * diff --git a/app/Models/Order.php b/app/Models/Order.php index ae6924eb..143389b3 100644 --- a/app/Models/Order.php +++ b/app/Models/Order.php @@ -9,7 +9,7 @@ use PDF; class Order extends MyBaseModel { use SoftDeletes; - + use \Backpack\CRUD\CrudTrait; /** * The validation rules of the model. * diff --git a/app/Models/OrderItem.php b/app/Models/OrderItem.php index 0b164d29..d9d3a51b 100644 --- a/app/Models/OrderItem.php +++ b/app/Models/OrderItem.php @@ -13,6 +13,7 @@ namespace App\Models; */ class OrderItem extends MyBaseModel { + use \Backpack\CRUD\CrudTrait; /** * Indicates if the model should be timestamped. * diff --git a/app/Models/OrderStatus.php b/app/Models/OrderStatus.php index 3aced013..3a9e3d8f 100644 --- a/app/Models/OrderStatus.php +++ b/app/Models/OrderStatus.php @@ -13,5 +13,6 @@ namespace App\Models; */ class OrderStatus extends \Illuminate\Database\Eloquent\Model { + use \Backpack\CRUD\CrudTrait; public $timestamps = false; } diff --git a/app/Models/Organiser.php b/app/Models/Organiser.php index 89aa5cac..27412c35 100644 --- a/app/Models/Organiser.php +++ b/app/Models/Organiser.php @@ -10,6 +10,7 @@ use Image; class Organiser extends MyBaseModel implements AuthenticatableContract { + use \Backpack\CRUD\CrudTrait; use Authenticatable; /** * The validation rules for the model. diff --git a/app/Models/User.php b/app/Models/User.php index a165d94a..78aa61ac 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -10,10 +10,12 @@ use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Notifications\Notifiable; +use Spatie\Permission\Traits\HasRoles; +use Backpack\CRUD\CrudTrait; class User extends Model implements AuthenticatableContract, CanResetPasswordContract { - use Authenticatable, CanResetPassword, SoftDeletes, Notifiable; + use Authenticatable, CanResetPassword, SoftDeletes, Notifiable, HasRoles, CrudTrait; /** * The database table used by the model. diff --git a/composer.json b/composer.json index 2b7fbc33..fa53b101 100755 --- a/composer.json +++ b/composer.json @@ -40,7 +40,11 @@ "omnipay/paypal": "~3", "omnipay/stripe": "~3", "backpack/crud": "^3.5", - "barryvdh/laravel-elfinder": "^0.4.1" + "barryvdh/laravel-elfinder": "^0.4.1", + "backpack/backupmanager": "^1.4", + "backpack/settings": "^2.1", + "backpack/pagemanager": "^1.1", + "backpack/permissionmanager": "^4.0" }, diff --git a/composer.lock b/composer.lock index 865617d5..7aa2c872 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d505aec3739019190607536af575fe2c", + "content-hash": "d16b1212c3c075e01f2954a1ebcece4d", "packages": [ { "name": "almasaeed2010/adminlte", @@ -132,6 +132,70 @@ ], "time": "2018-12-13T22:18:37+00:00" }, + { + "name": "backpack/backupmanager", + "version": "1.4.5", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Backpack/BackupManager.git", + "reference": "60ec776324e915f261deb4bbef28e9e3b6e4dba8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Backpack/BackupManager/zipball/60ec776324e915f261deb4bbef28e9e3b6e4dba8", + "reference": "60ec776324e915f261deb4bbef28e9e3b6e4dba8", + "shasum": "" + }, + "require": { + "backpack/base": "0.9.*|1.0.*", + "illuminate/support": "~5.1", + "spatie/laravel-backup": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "4.*", + "scrutinizer/ocular": "~1.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + }, + "laravel": { + "providers": [ + "Backpack\\BackupManager\\BackupManagerServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Backpack\\BackupManager\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "proprietary" + ], + "authors": [ + { + "name": "Cristian Tabacitu", + "email": "hello@tabacitu.ro", + "homepage": "http://tabacitu.ro", + "role": "Chief Architect & Web Developer" + } + ], + "description": "Admin interface for managing backups in Backpack, on Laravel 5.2+", + "homepage": "https://github.com/laravel-backpack/BackupManager", + "keywords": [ + "backpack", + "backup", + "backupmanager", + "dick", + "laravel", + "tabacitu", + "updivision" + ], + "time": "2018-11-22T21:26:26+00:00" + }, { "name": "backpack/base", "version": "1.0.4", @@ -272,6 +336,216 @@ ], "time": "2018-12-13T10:14:30+00:00" }, + { + "name": "backpack/pagemanager", + "version": "1.1.27", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Backpack/PageManager.git", + "reference": "9e698cfdd588f1fd2bef640e144a628da5c2f489" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Backpack/PageManager/zipball/9e698cfdd588f1fd2bef640e144a628da5c2f489", + "reference": "9e698cfdd588f1fd2bef640e144a628da5c2f489", + "shasum": "" + }, + "require": { + "backpack/crud": "^3.0.6", + "cviebrock/eloquent-sluggable": "^4.0", + "doctrine/dbal": "^2.5.12", + "illuminate/support": "~5.1", + "php": "~5.5|~7.0" + }, + "require-dev": { + "phpunit/phpunit": "4.*", + "scrutinizer/ocular": "~1.1", + "squizlabs/php_codesniffer": "~2.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + }, + "laravel": { + "providers": [ + "Backpack\\PageManager\\PageManagerServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Backpack\\PageManager\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "proprietary" + ], + "authors": [ + { + "name": "Cristian Tabacitu", + "email": "hello@tabacitu.ro", + "homepage": "http://tabacitu.ro", + "role": "Architect & Developer" + } + ], + "description": "Create admin panels for presentation websites on Laravel, using page templates and Backpack\\CRUD.", + "homepage": "https://github.com/laravel-backpack/PageManager", + "keywords": [ + "Content management system", + "admin panel", + "administer pages", + "backpack", + "cms", + "crud", + "manage pages", + "pagemanager", + "presentation pages", + "presentation website", + "wordpress" + ], + "time": "2018-12-06T10:42:53+00:00" + }, + { + "name": "backpack/permissionmanager", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Backpack/PermissionManager.git", + "reference": "643f9e11f72f803d8b48df551e8b592493836c95" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Backpack/PermissionManager/zipball/643f9e11f72f803d8b48df551e8b592493836c95", + "reference": "643f9e11f72f803d8b48df551e8b592493836c95", + "shasum": "" + }, + "require": { + "backpack/crud": "^3.4.0", + "spatie/laravel-permission": "2.28.*" + }, + "require-dev": { + "phpunit/phpunit": "4.*", + "scrutinizer/ocular": "~1.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + }, + "laravel": { + "providers": [ + "Backpack\\PermissionManager\\PermissionManagerServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Backpack\\PermissionManager\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "proprietary" + ], + "authors": [ + { + "name": "Marius Constantin", + "email": "marius@updivision.com", + "homepage": "http://www.updivision.com", + "role": "Lead Developer" + }, + { + "name": "Cristian Tabacitu", + "email": "hello@tabacitu.ro", + "homepage": "http://www.tabacitu.ro", + "role": "Chief Architect" + } + ], + "description": "Users and permissions management interface for Laravel 5 using Backpack CRUD.", + "homepage": "https://github.com/laravel-backpack/permissionmanager", + "keywords": [ + "backpack", + "backpack permission", + "backpack roles", + "backpack user management", + "dick", + "dick permission", + "laravel backpack", + "manage permission", + "manage roles", + "manage users", + "tabacitu", + "updivision", + "users roles admin" + ], + "time": "2018-12-12T08:47:33+00:00" + }, + { + "name": "backpack/settings", + "version": "2.1.2", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Backpack/Settings.git", + "reference": "ab1193e5b7cea080478c3e469b986a0e8c44bb38" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Backpack/Settings/zipball/ab1193e5b7cea080478c3e469b986a0e8c44bb38", + "reference": "ab1193e5b7cea080478c3e469b986a0e8c44bb38", + "shasum": "" + }, + "require": { + "backpack/crud": "3.4.*|3.5.*" + }, + "require-dev": { + "phpunit/phpunit": "4.*", + "scrutinizer/ocular": "~1.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + }, + "laravel": { + "providers": [ + "Backpack\\Settings\\SettingsServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Backpack\\Settings\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "proprietary" + ], + "authors": [ + { + "name": "Cristian Tabacitu", + "email": "hello@tabacitu.ro", + "homepage": "http://www.tabacitu.ro", + "role": "Chief Architect & Lead Developer" + } + ], + "description": "Application settings interface for Laravel 5 using Backpack CRUD.", + "homepage": "https://github.com/laravel-backpack/settings", + "keywords": [ + "backpack", + "backpack settings", + "dick", + "dick settings", + "laravel backpack", + "manage settings", + "settings admin", + "tabacitu", + "updivision" + ], + "time": "2018-11-22T21:29:16+00:00" + }, { "name": "barryvdh/elfinder-flysystem-driver", "version": "v0.2.1", @@ -560,6 +834,71 @@ ], "time": "2017-08-18T09:54:01+00:00" }, + { + "name": "cocur/slugify", + "version": "v3.1", + "source": { + "type": "git", + "url": "https://github.com/cocur/slugify.git", + "reference": "b2ccf7b735f4f3df3979aef2e1ebf8e19ca772f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/cocur/slugify/zipball/b2ccf7b735f4f3df3979aef2e1ebf8e19ca772f7", + "reference": "b2ccf7b735f4f3df3979aef2e1ebf8e19ca772f7", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=5.5.9" + }, + "require-dev": { + "laravel/framework": "~5.1", + "latte/latte": "~2.2", + "league/container": "^2.2.0", + "mikey179/vfsstream": "~1.6", + "mockery/mockery": "~0.9", + "nette/di": "~2.2", + "phpunit/phpunit": "~4.8|~5.2", + "pimple/pimple": "~1.1", + "plumphp/plum": "~0.1", + "silex/silex": "~1.3", + "symfony/config": "~2.4|~3.0", + "symfony/dependency-injection": "~2.4|~3.0", + "symfony/http-kernel": "~2.4|~3.0", + "twig/twig": "~1.26|~2.0", + "zendframework/zend-modulemanager": "~2.2", + "zendframework/zend-servicemanager": "~2.2", + "zendframework/zend-view": "~2.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Cocur\\Slugify\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ivo Bathke", + "email": "ivo.bathke@gmail.com" + }, + { + "name": "Florian Eckerstorfer", + "email": "florian@eckerstorfer.co", + "homepage": "https://florian.ec" + } + ], + "description": "Converts a string into a slug.", + "keywords": [ + "slug", + "slugify" + ], + "time": "2018-01-22T09:00:48+00:00" + }, { "name": "composer/ca-bundle", "version": "1.1.3", @@ -1037,6 +1376,69 @@ ], "time": "2018-03-29T22:10:58+00:00" }, + { + "name": "cviebrock/eloquent-sluggable", + "version": "4.6.0", + "source": { + "type": "git", + "url": "https://github.com/cviebrock/eloquent-sluggable.git", + "reference": "d8a6982d32a7fe92f42b1c33a34e89d33516c2fd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/cviebrock/eloquent-sluggable/zipball/d8a6982d32a7fe92f42b1c33a34e89d33516c2fd", + "reference": "d8a6982d32a7fe92f42b1c33a34e89d33516c2fd", + "shasum": "" + }, + "require": { + "cocur/slugify": "^3.1", + "illuminate/config": "~5.7.0", + "illuminate/database": "~5.7.0", + "illuminate/support": "~5.7.0", + "php": "^7.0" + }, + "require-dev": { + "limedeck/phpunit-detailed-printer": "^4.1", + "mockery/mockery": "^0.9.4", + "orchestra/database": "3.7.x-dev", + "orchestra/testbench": "v3.7.0", + "phpunit/phpunit": "~7.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Cviebrock\\EloquentSluggable\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Cviebrock\\EloquentSluggable\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Colin Viebrock", + "email": "colin@viebrock.ca" + } + ], + "description": "Easy creation of slugs for your Eloquent models in Laravel 5.", + "homepage": "https://github.com/cviebrock/eloquent-sluggable", + "keywords": [ + "eloquent", + "eloquent-sluggable", + "laravel", + "lumen", + "slug", + "sluggable" + ], + "time": "2018-09-05T02:03:48+00:00" + }, { "name": "doctrine/cache", "version": "v1.8.0", @@ -5135,6 +5537,235 @@ ], "time": "2015-10-13T18:44:15+00:00" }, + { + "name": "spatie/db-dumper", + "version": "2.12.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/db-dumper.git", + "reference": "61cf73e3b53e163d6e888a0013b9df6bb235752c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/db-dumper/zipball/61cf73e3b53e163d6e888a0013b9df6bb235752c", + "reference": "61cf73e3b53e163d6e888a0013b9df6bb235752c", + "shasum": "" + }, + "require": { + "php": "^7.0", + "symfony/process": "^3.0|^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\DbDumper\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Dump databases", + "homepage": "https://github.com/spatie/db-dumper", + "keywords": [ + "database", + "db-dumper", + "dump", + "mysqldump", + "spatie" + ], + "time": "2018-12-10T10:41:18+00:00" + }, + { + "name": "spatie/laravel-backup", + "version": "5.11.3", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-backup.git", + "reference": "ff06262cfa2fa1104f727e758fc4111a6f7413da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-backup/zipball/ff06262cfa2fa1104f727e758fc4111a6f7413da", + "reference": "ff06262cfa2fa1104f727e758fc4111a6f7413da", + "shasum": "" + }, + "require": { + "laravel/framework": "~5.5.0|~5.6.0|~5.7.0", + "league/flysystem": "^1.0.27", + "php": "^7.1", + "spatie/db-dumper": "^2.11.1", + "spatie/temporary-directory": "^1.1", + "symfony/finder": "^3.3|^4.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "orchestra/testbench": "~3.5.0|~3.6.0|~3.7.0", + "phpunit/phpunit": "^7.3" + }, + "suggest": { + "guzzlehttp/guzzle": "Allows notifications to be sent via Slack" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\Backup\\BackupServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\Backup\\": "src" + }, + "files": [ + "src/Helpers/functions.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A Laravel 5 package to backup your application", + "homepage": "https://github.com/spatie/laravel-backup", + "keywords": [ + "backup", + "database", + "laravel-backup", + "spatie" + ], + "time": "2018-11-05T13:09:53+00:00" + }, + { + "name": "spatie/laravel-permission", + "version": "2.28.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-permission.git", + "reference": "1887a5851013bf1a457f2a65477f96e98ae3f53a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/1887a5851013bf1a457f2a65477f96e98ae3f53a", + "reference": "1887a5851013bf1a457f2a65477f96e98ae3f53a", + "shasum": "" + }, + "require": { + "illuminate/auth": "~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0", + "illuminate/container": "~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0", + "illuminate/contracts": "~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0", + "illuminate/database": "~5.4.0|~5.5.0|~5.6.0|~5.7.0", + "php": ">=7.0" + }, + "require-dev": { + "orchestra/testbench": "~3.4.2|~3.5.0|~3.6.0|~3.7.0", + "phpunit/phpunit": "^5.7|6.2|^7.0", + "predis/predis": "^1.1" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\Permission\\PermissionServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\Permission\\": "src" + }, + "files": [ + "src/helpers.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Permission handling for Laravel 5.4 and up", + "homepage": "https://github.com/spatie/laravel-permission", + "keywords": [ + "acl", + "laravel", + "permission", + "security", + "spatie" + ], + "time": "2018-12-11T02:03:59+00:00" + }, + { + "name": "spatie/temporary-directory", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/spatie/temporary-directory.git", + "reference": "5e1799fa2297363ebfb4df296fea90afbd4ef9b7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/temporary-directory/zipball/5e1799fa2297363ebfb4df296fea90afbd4ef9b7", + "reference": "5e1799fa2297363ebfb4df296fea90afbd4ef9b7", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\TemporaryDirectory\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alex Vanderbist", + "email": "alex@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Easily create, use and destroy temporary directories", + "homepage": "https://github.com/spatie/temporary-directory", + "keywords": [ + "spatie", + "temporary-directory" + ], + "time": "2018-04-12T09:34:43+00:00" + }, { "name": "studio-42/elfinder", "version": "2.1.43", diff --git a/config/backpack/base.php b/config/backpack/base.php index e4acc7ce..2e2c357a 100644 --- a/config/backpack/base.php +++ b/config/backpack/base.php @@ -95,7 +95,7 @@ return [ 'middleware_class' => [ App\Http\Middleware\CheckIfAdmin::class, \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, - // \Backpack\Base\app\Http\Middleware\UseBackpackAuthGuardInsteadOfDefaultAuthGuard::class, + \Backpack\Base\app\Http\Middleware\UseBackpackAuthGuardInsteadOfDefaultAuthGuard::class, ], // Alias for that middleware diff --git a/resources/views/vendor/backpack/base/inc/sidebar_content.blade.php b/resources/views/vendor/backpack/base/inc/sidebar_content.blade.php index 5d7f2aa8..b676af46 100644 --- a/resources/views/vendor/backpack/base/inc/sidebar_content.blade.php +++ b/resources/views/vendor/backpack/base/inc/sidebar_content.blade.php @@ -1,3 +1,18 @@
  • {{ trans('backpack::base.dashboard') }}
  • -
  • {{ trans('backpack::crud.file_manager') }}
  • \ No newline at end of file + +
  • + Users, Roles, Permissions + +
  • +
  • {{ trans('backpack::crud.file_manager') }}
  • +
  • Pages
  • +
  • Settings
  • +
  • Backups
  • +
  • Categories
  • +
  • Countries
  • +
  • Events
  • \ No newline at end of file diff --git a/routes/backpack/custom.php b/routes/backpack/custom.php index 85e8c979..11820101 100644 --- a/routes/backpack/custom.php +++ b/routes/backpack/custom.php @@ -11,4 +11,7 @@ Route::group([ 'middleware' => ['web', config('backpack.base.middleware_key', 'admin')], 'namespace' => 'App\Http\Controllers\Admin', ], function () { // custom admin routes -}); // this should be the absolute last line of this file + CRUD::resource('category', 'CategoryCrudController'); + CRUD::resource('country', 'CountryCrudController'); + CRUD::resource('event', 'EventCrudController'); +}); // this should be the absolute last line of this file \ No newline at end of file