Download the PHP package leogopal/laravel-startercrud without Composer

On this page you can find all versions of the php package leogopal/laravel-startercrud. 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 laravel-startercrud

Laravel Starterkit Artisan CRUD

Latest Stable Version Total Downloads License

This is an Artisan based package for the Laravel Starterkit

Install

Via Composer

Usage

Creates a Model, Controller (with Repository, validation Requests, Events and Listeners), Migration, Routes, Breadcrumbs and CRUD Views for the given name ready to work.

It does not overwrite any files that may exist with the pre-stablished names. So, if you delete one of the files and run the command again, the deleted file will be created again and the rest will be ignored and will keep the changes you could have made.

Run

In your Laravel project root folder:

Where example is the name you want for your model (routes, views, controllers,...). I've tried to follow best naming practices and it uses plural or singular names and lower or uppercase where needed. You can also use camelCase or snake_case.

Parameters example, Example, examples or EXAMPLES all give the same results.

Then run the created migration:

In your browser open:

...et voilà! :)

Note: out of the box, the table comes only with a title text field, besides the id, _deletedat, _createdat and _updatedat. Edit your newly created migration file to add any other you may need before runnning the migrate command.

Options

You can create all the files and run the migration by running the command with the --migrate option:

You may also specify the name of the default text field 'title' to whatever other you prefer with the --field option:

Include a menu item

A file named sidebar-examples.blade.php is created in the folder /resources/views/backend/example/includes. It contains the html code for a menu item to access your recently created views. You can show it in your sidebar by including the following line in /resources/views/backend/includes/sidebar.blade.php wherever you want it to appear:

Events and Listeners

The package generates three events and listeners for creating, updating and deleting items methods. In order to get these to work you must resgister them with the event dispatcher, adding this line to your Providers/EventServiceProvider.php file (under Backend Subscribers):

Language lines

Following are the labels.php, menus.php and validation.php English language lines needed, copy them into the files in /resources/lang/en or whatever other language folder you may need. Replace Example for the name of your Model.

TODO: generate a file with all the customized language lines ready to copy&paste.

labels.php under 'backend':

menus.php under 'backend'

menus.php under 'backend' => 'sidebar'

validation.php under 'attributes' => 'backend'

alerts.php under 'backend'

buttons.php under 'backend'

exceptions.php under 'backend'

Files created

Model

Trait Attribute

This is where the action buttons for the new object are.

Controller

It contains the CRUD methods: index, create, store, show, edit, update, destroy, delete, restore and deleted.

Repository

Contains database logic.

Requests

Validation manage, store and update Requests.

Events

Listeners

Migrations

Routes

Contains the named routes admin.examples.index, admin.examples.deleted, admin.examples.restore, delete-permanently, admin.examples.create, admin.examples.store, admin.examples.show, admin.examples.edit, admin.examples.update and admin.examples.destroy.

Breadcrumbs

This has the breadcrumbs for the routes admin.examples.index, admin.examples.create, admin.examples.show, admin.examples.edit and admin.examples.deleted.

The following line is added to routes/breadcrumbs/backend/backend.php:

If you delete the routes/breadcrumbs/backend/example.php file created by this command, don't forget to delete this line or your whole project will crash.

Views

If you add more fields to your datatable, you'll have to edit show.blade.php, create.blade.php and edit.blade.php to suit your needs.

Menu item

HTML code for the menu item for your Laravel 5 starterkit sidebar.

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-startercrud with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
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 leogopal/laravel-startercrud contains the following files

Loading the files please wait ....