laramod / admin-core
LaraMod Admin Core
Installs: 51
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 15
Language:HTML
Requires
- php: >=5.3.0
- illuminate/support: ~5.2
README
LaraMod is a modular Laravel based CMS. https://github.com/LaraModulus
WARNING: Until v1 there will be no backward compatibility and some versions may require migrate:refresh
Installation
composer require laramod/admin-core
config/app.php
'providers' => [ ... LaraMod\Admin\Core\AdminCoreServiceProvider::class ]
config/app.php By default LaraMod uses English as language. If you need more than one locale, you can define it in config/app.php 'fallback_locale' is used as default locale.
'locales' => ['en'],
config/auth.php
'guards' => [ ... 'admin' => [ 'driver' => 'session', 'provider' => 'admins' ] ], 'providers' => [ ... 'admins' => [ 'driver' => 'eloquent', 'model' => \LaraMod\Admin\Core\Models\Admin::class ] ], 'passwords' => [ ... 'admins' => [ 'provider' => 'admins', 'email' => 'auth.emails.password', 'table' => 'admin_password_resets', 'expire' => 60, ] ],
app/Http/Kernel.php
protected $middlewareGroups = [ ... 'admin' => [ \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, ] ]; protected $routeMiddleware = [ ... 'auth.admin' => \LaraMod\Admin\Core\Middleware\Authenticate::class, ];
Publish config files
php artisan vendor:publish --tag="config"
In config/admincore.php
you can edit admin menu
Publish assets
php artisan vendor:publish --tag="public"
Publish migrations
php artisan vendor:publish --tag="migrations"
DEMO: http://laramod.novaspace.eu/admin
user: admin@admin.com
pass: admin