Download the PHP package amitavdevzone/foundation without Composer
On this page you can find all versions of the php package amitavdevzone/foundation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amitavdevzone/foundation
More information about amitavdevzone/foundation
Files in amitavdevzone/foundation
Package foundation
Short Description The foundation package for Inferno
License MIT
Informations about the package foundation
Inferno
This is a Laravel admin package built using AdminLTE theme and VueJs components. The basic idea for this package is to get going with a ready made admin theme and concentrate of the idea on which you want to work on and leave all the boilerplate code to this package.
Features
- User login
- Forgot password (uses Laravel mail to sendout emails)
- Watchdog
Requirements
- Laravel Passport
- Spatie Laravel Permission
The application uses Vue components for many of the widgets in the app. And many of them needs the Laravel passport package installed and setup so that the package can consume apis. For more details on how to install Laravel Passport, you can refer to the docs: https://laravel.com/docs/5.4/passport
Installation
The first step is to install this package using composer require and you need to run the below command:
composer require amitavdevzone/foundation
Once done, you will need to add the ServiceProvider to the app.php file inside your config folder
Once, done you will need to run the publish command. Inferno has a lot of things to publish like the migrations, seeders, assets for themes, views etc. Plus we would also need to get some of the migrations from Spatie Laravel Permission.
Once this is done, you will need to make a few additions to your user model like
Additions to User model
- You need to add the Presentable trait to the User model. We will be using the Presenter package from Laracasts and so this setting is important.
- You need to add the HasRoles trait which comes with Spatie Permission package
- You need to add the HasApiTokens trait from Laravel Passport for ApiTokens
- You will need to add the profile relation with the user
Add the following code to your User model inside your app directory
And make sure you have an additional $fillable property 'active' which we are using to detect whether the user is active or not.
You need to also add:
to the AuthServiceProvider as per the Passport installation process and you need to add the middleware to web section of the middleware groups so that the ApiToken is created for each request to any api route as per Passport installation.
Then, as part of the Passport installation, we need to tell Laravel that we are going to use passport for authentication so inside config/auth.php we need to change the guards => api driver to passport.
And then, we need to run two commands:
Once these steps are done, you can run the migrations and run the seeders to get started with your Inferno app and start coding for your next big idea.
All versions of foundation with dependencies
anlutro/l4-settings Version ^0.5.0
laracasts/presenter Version ^0.2.1
laravel/passport Version ^2.0
laracasts/flash Version ^2.0
spatie/laravel-permission Version ^1.11