PHP code example of san-kumar / laravel-crud
1. Go to this page and download the library: Download san-kumar/laravel-crud library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
san-kumar / laravel-crud example snippets
/* inside routes/web.php */
\San\Crud\Crud::routes();
// config/crud.php
return [
'template_dir' => 'etc/templates/newname',
];
bash
$ php artisan crud:generate customers.tickets.replies
bash
# Create CRUD for authors table
$ php artisan crud:generate authors
# Create CRUD for the authors > posts table
$ php artisan crud:generate authors.posts
# Create CRUD for the authors > posts > comments table
$ php artisan crud:generate authors.posts.comments
bash
# Create CRUD for authors table using Tailwind CSS
$ php artisan crud:generate authors --css=tailwind
# Shortcut for Tailwind CSS
$ php artisan crud:generate authors -t
bash
# Create CRUD for authors table using layout 'layouts/admin.blade.php'
$ php artisan crud:generate authors --layout=admin
$ php artisan crud:generate authors --section=mysection
bash
# Create CRUD for authors table
$ php artisan crud:generate authors
# Create CRUD for posts table
$ php artisan crud:generate authors.posts
# Create CRUD for comments table
$ php artisan crud:generate authors.posts.comments
bash
# Create CRUD for posts table
$ php artisan crud:generate posts
# Create CRUD for comments table
$ php artisan crud:generate posts.comments
bash
# Copy the template files into a new directory
$ php artisan crud:template newname
bash
# Copy the template files into a new directory
$ php artisan crud:template newname -d etc/templates
bash
$ php artisan crud:remove customers.tickets.replies