PHP code example of safi / filament-atelier

1. Go to this page and download the library: Download safi/filament-atelier 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/ */

    

safi / filament-atelier example snippets


  // config/atelier.php
  'experimental' => [
      'menus' => true,
  ],
  

  AtelierPlugin::make()->experimental(['menus' => true])
  

AtelierPlugin::make()
    ->blocks(DefaultBlocks::all())
    ->sitemap([
        fn () => Post::published()->get()->map(fn (Post $post) => [
            'loc' => route('blog.show', $post),
            'lastmod' => $post->updated_at,
        ]),
    ]);
bash
composer vendor:publish --tag=filament-atelier-migrations
php artisan migrate && php artisan storage:link
bash
composer update safi/filament-atelier
php artisan vendor:publish --tag=filament-atelier-migrations
php artisan migrate