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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

  1. User login
  2. Forgot password (uses Laravel mail to sendout emails)
  3. Watchdog

Requirements

  1. Laravel Passport
  2. 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

  1. 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.
  2. You need to add the HasRoles trait which comes with Spatie Permission package
  3. You need to add the HasApiTokens trait from Laravel Passport for ApiTokens
  4. 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

PHP Build Version
Package Version
Requires illuminate/support Version ~5
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package amitavdevzone/foundation contains the following files

Loading the files please wait ....