This is the official documentation of the forestadmin/laravel-forestadmin v2+ and forestadmin/symfony-forestadmin PHP agents.

The Doctrine data source allows importing collections from a Doctrine instance.

To make everything work as expected, you need to install the package forestadmin/php-datasource-doctrine.

Note that:

  • Doctrine relationships will be respected

use ForestAdmin\AgentPHP\Agent\Utils\Env;
use ForestAdmin\AgentPHP\DatasourceDoctrine\DoctrineDatasource;
use ForestAdmin\SymfonyForestAdmin\Service\ForestAgent;

return static function (ForestAgent $forestAgent) {

        new DoctrineDatasource(
            ['url' => Env::get('DATABASE_URL')]

Last updated