PHP code example of luis-developer-08 / yui-installer

1. Go to this page and download the library: Download luis-developer-08/yui-installer 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/ */

    

luis-developer-08 / yui-installer example snippets




namespace App\Http\Controllers\Orion;

use Orion\Http\Controllers\Controller;
use App\Models\Post;

class PostController extends Controller
{
    protected $model = Post::class;
}

Orion::resource('posts', \App\Http\Controllers\Orion\PostController::class)->middleware(['auth', 'web']);
bash
php artisan make:inertia Components/MyComponent
bash
php artisan make:inertia Components/Auth/Login
bash
php artisan make:orion PostController

app/Http/Controllers/Orion/PostController.php
app/Models/Post.php