PHP code example of phpinnacle / pinax
1. Go to this page and download the library: Download phpinnacle/pinax 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/ */
phpinnacle / pinax example snippets
use PHPinnacle\Pinax\Forms\MediaGallery;
use PHPinnacle\Pinax\Mark;
MediaGallery::make('gallery')
->disk('public')
->directory('products')
->marks(
Mark::make('cover')->label('Cover')->unique()->default(),
Mark::make('featured')->label('Featured'),
);
bash
composer vendor:publish --tag="phpinnacle-pinax-migrations"
php artisan migrate
bash
php artisan storage:link