Links

Laravel

composer require forestadmin/laravel-forestadmin
Run the following commands in your terminal
php bin/console forest:install THE-KEY-PROVIDED-BY-FORESTADMIN
Once the installation is finish, you have a new configuration file (config/forest.php) and two environments variables in your .env
config/forest_admin.php
.env
use ForestAdmin\AgentPHP\Agent\Builder\AgentFactory;
use ForestAdmin\AgentPHP\DatasourceEloquent\EloquentDatasource;
return static function () {
$defaultDB = config('database.default');
app()->make(AgentFactory::class)->addDatasource(
new EloquentDatasource(
[
'driver' => config('database.connections.' . $defaultDB . '.driver'),
'host' => config('database.connections.' . $defaultDB . '.host'),
'port' => config('database.connections.' . $defaultDB . '.port'),
'database' => config('database.connections.' . $defaultDB . '.database'),
'username' => config('database.connections.' . $defaultDB . '.username'),
'password' => config('database.connections.' . $defaultDB . '.password'),
// OR
// 'url' => config('database.connections.' . $defaultDB . '.url'),
]
),
);
};
FOREST_AUTH_SECRET=<This is provided during the onboarding steps>
FOREST_ENV_SECRET=<This is provided during the onboarding steps>
Running
php artisan serve
should be enough to be redirected to the "rate-install" page.