PHP code example of archtechx / laravel-pages

1. Go to this page and download the library: Download archtechx/laravel-pages 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/ */

    

archtechx / laravel-pages example snippets


ArchTech\Pages\Page::routes();

Route::get('/{page}', ArchTech\Pages\PageController::class);

public function fields(Request $request)
{
    return [
        Text::make('slug'),
        Text::make('title'),
        Markdown::make('content'),
    ];
}

php artisan vendor:publish --tag=archtech-pages-config