PHP code example of nicoaudy / laravelmanthra
1. Go to this page and download the library: Download nicoaudy/laravelmanthra 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/ */
nicoaudy / laravelmanthra example snippets
// manthra controller
$manthraNamespace = 'NicoAudy\LaravelManthra\Http\Controllers\ManthraController@index';
// your custom route
Route::get('/manthra', $manthraNamespace)->middleware('auth');
Route::resource('posts', 'PostsController');
bash
$ php artisan vendor:publish
bash
php artisan manthra:complete Cat --fields="name#string;age#integer; type#select#options=persian,maine coon,bengal; is_male#boolean" --view-path=pet --controller-namespace=Pet --route-group=pet --model-namespace=Models
php artisan manthra:controller PostsController --crud-name=posts --model-name=Post --view-path="directory" --route-group=admin
php artisan manthra:api-controller PostsController --crud-name=posts --model-name=Post --route-group=admin
php artisan manthra:model Post --fillable="['title', 'body']"
php artisan migrate
php artisan vendor:publish --provider="NicoAudy\LaravelManthra\LaravelManthraServiceProvider"