Download the PHP package aacassandra/laraquent without Composer
On this page you can find all versions of the php package aacassandra/laraquent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aacassandra/laraquent
More information about aacassandra/laraquent
Files in aacassandra/laraquent
Package laraquent
Short Description Save your time with Laraquent, for CRUD your laravel project
License MIT
Informations about the package laraquent
Beauty Eloquent
This is a package for laravel framework especially for CRUD activities. This package uses the eloquent laravel style and doesn't leave the default eloquent style. It's just that this package makes it easier for us to perform CRUD activities without including the model dependency on the associated controller.
Suported Features
- Create
- Read
- Update
- Delete
- User
- CreateUser
- UpdateUser
- DeleteUser
- Users
Laravel Permission Features
if you use the spatie/laravel-permission, then the features below can be used in a shorter method
- Roles
- CreateRole
- UpdateRole
- DeleteRole
- Permissions
Installation in Laravel
This package can be used with Laravel 5 or higher.
-
Consult the Prerequisites page for important considerations regarding your User models!
-
This package publishes a config/laraquent.php file. If you already have a file by that name, you must rename or remove it.
-
You can install the package via composer:
-
In the \$providers array add the service providers in your config/app.php file:
-
Add the facade of this package to the \$aliases array.
-
You must publish the config. which will later be on the config/laraquent.php config file with:
- Now the Image Class will be auto-loaded by Laravel.
Default Config File Contents
You can view the default config file contents at: https://github.com/aacassandra/laraquent/resources/config/laraquent.php
Basic Usage
Below are some basic examples for using laravel's CRUD functions
Create Object
Format
Example
Read Object
Format
Example
Update Object
Format
Example
Delete Object
Format
Example
Advance Usage
Below are some advance examples with spatie/laravel-permission integration if needed
Roles
Show all roles
Create Role
Update Role
Delete Role
Permissions
Show all permissions
User
Get specific user by id
Users
Get all users
Create User
Update User
Delete User
Package Config Must Be Configure
Config file must be configure if you using laravel 8, because file models on laravel 8 has been moved to Models directory
make sure you always update about role models and permissions. you can check it on their official website of spatie/laravel-permission
License
This project is licensed under the MIT License - see the LICENSE.md file for details