PHP Classes

Laravel Automatic CRUD: Generate a CRUD interface for Web and API requests

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 69 All time: 10,313 This week: 455Up
Version License PHP version Categories
laravel-automatic 1.0.0GNU General Publi...7PHP 5, Libraries, Web services, Desig...
Description 

Author

This package can generate a CRUD interface for Web and API requests.

It can route requests that provide basic create, read, update and delete operations to manage records of data.

The requests can handle regular Web requests that serve Web pages as response, or API requests.

Picture of Paulo Henrique
Name: Paulo Henrique <contact>
Classes: 5 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 4x

 

Example

<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::resources([
   
"users"=>"UserController",
   
"products"=>"ProductController"
   
]);

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return
$request->user();
});


Details

Automated Laravel

Simple sample to automated CRUD....

Starting

  • Clone this repository;
  • To Build docker run on terminal:
    $ docker-compose up -d --build
    
    #####*You can omit the '-d' and show the servers running.
  • Now we need to check if the VM is running:
    $ docker ps
    
    $ docker-compose exec app composer install
    $ docker-compose exec app php artisan key:generate
    $ docker-compose exec app php artisan migrate ###### Done.
  • Go to the browser and open http://localhost/ default. If it's okay, congratulations, if not, I do not know how you screwed it up! Fix it. ;)

  Files folder image Files (102)  
File Role Description
Files folder imageapp (7 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (13 files)
Files folder imagedatabase (3 directories)
Files folder imagepublic (4 files, 3 directories)
Files folder imageresources (4 directories)
Files folder imageroutes (4 files)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file app.dockerfile Data Auxiliary data
Plain text file artisan Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file docker-compose.yml Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file readme.md Doc. Documentation
Accessible without login Plain text file server.php Aux. Auxiliary script
Accessible without login Plain text file vhost.conf Data Auxiliary data
Accessible without login Plain text file web.dockerfile Data Auxiliary data
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:69
This week:0
All time:10,313
This week:455Up