PHP code example of pine207 / pine-dashboard

1. Go to this page and download the library: Download pine207/pine-dashboard 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/ */

    

pine207 / pine-dashboard example snippets


Route::group([
    'prefix'        => 'controle/',
    'middleware'    => ['web', 'auth:sanctum', 'verified'],
    'as'            => 'controle.'
] ,function () {

    /*--------------------------------------------------------------------------
    | Adicione as rotas do controle aqui dentro
    |--------------------------------------------------------------------------*/

    ...

    /*--------------------------------------------------------------------------
    | Rotas para Gerenciamento de Empreendimentos
    |--------------------------------------------------------------------------*/
    Route::prefix('empreendimentos')->name('empreendimentos.')->group(function () {
        $controller = EmpreendimentoController::class;
        Route::get('/', [$controller, 'index'])->middleware('permission:Visualizar empreendimento')->name('index');
        Route::get('/create', [$controller, 'create'])->middleware('permission:Cadastrar empreendimento')->name('create');
        Route::post('/store', [$controller, 'store'])->middleware('permission:Cadastrar empreendimento')->name('store');
        Route::get('/edit/{id}', [$controller, 'edit'])->middleware('permission:Alterar empreendimento')->name('edit');
        Route::put('/update/{id}', [$controller, 'update'])->middleware('permission:Alterar empreendimento')->name('update');
        Route::delete('/delete/{id}', [$controller, 'delete'])->middleware('permission:Excluir empreendimento')->name('delete');
    });

    ...

});
bash
php artisan dashboard:install