Download the PHP package dlogon/quick-crud-for-laravel without Composer

On this page you can find all versions of the php package dlogon/quick-crud-for-laravel. 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 quick-crud-for-laravel

Create a crud for model in some steps

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Create a Crud for model in some steps

Requirements

This package uses TailwindCSS (https://tailwindcss.com/) for styling. It uses some of the base laravel breeze/jetstream components and styles.

Installation

You can install the package via composer:

You can publish the config file with:

This is the contents of the published config file:

Optionally, you can publish the views using

Usage

Once you have created your model and running the migrations, you can run the command

This will create:

-A Controller named \<your model name>Controller

-A view named index inside views/crudable/\<your model in lower case>/index.blade.php

-A view named show inside views/crudable/\<your model in lower case>/show.blade.php

-A route file named quickcrud.php

Then you should add the trait Dlogon\QuickCrudForLaravel\Traits\NavigationUtils; to your model, for example:

Then you should include the quickcrud.php file in your web.php route file, o copy the generated routes in web.php

With this steps, you are now able to navigate to yourhost/\ and see the index view with a table with search, and buttons to do operations with your model

If your model is in another namespace than the default App/Models/ you can pass a second argument with the namespace

Example:

We generate the Blog model with this migration

Then we run the migrations, and we run

this will create the next controller in the controller folder

and the index and show views.

table fields

We have a table component inside the recent created index view, connected to the $tablefields controller variable.

We should pass an asoc array with the key as the label column displayed in the table component and the value as the column name in our database model.

Example:

You can alternatively pass an array instead the database-model-column, if you do this, you should pass the type and field structure.

If you set the type as related, you should put in field relationName.fieldName where fieldName is the column name in the related model

Example:

If you set the type as money, you should put the numeric field in the field key of array

Example:

search fields

By default the variable controller $searchfields has the created_at field for search, you can define the next 3 structures for a search field

Text

where

Date

where

Related

This will show a dropdown for a seach of related models

where

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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


All versions of quick-crud-for-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
spatie/laravel-package-tools Version ^1.14.0
dlogon/tailwind-alerts Version ^0.2
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 dlogon/quick-crud-for-laravel contains the following files

Loading the files please wait ....