Pages

Atomic Panel is the best curd ever. it works with Laravel Models. If you don`t want to use laravel models so you can create your own pages or use ready pages.

🏢 in app/Providers/AtomicServiceProvider.php you will find this method :

/**
  * Register Application Pages
  * @return array
  */
 protected function pages()
 {
     return [];
 }
1
2
3
4
5
6
7
8

you can register your pages there.


/**
 * Register Application Pages
 * @return array
 */
protected function pages()
{
    return [
        new SimplePage()
    ];
}
1
2
3
4
5
6
7
8
9
10
11

CanSee()

if you want to authorize this page for custom users or condition you can use canSee method return false or true to hide or show field:


/**
 * Register Application Pages
 * @return array
 */
protected function pages()
{
    return [
       (new SimplePage())->canSee(function (){
                return true;
        })
    ];
}
1
2
3
4
5
6
7
8
9
10
11
12
13