| title | github | order |
|---|---|---|
Installation |
1 |
Before moving on, please check out the Laravel documentation about its installation, requirements, and configuration.
Requirements:
- PHP
8.2+ - PHP
GDandEXIFextensions - Laravel
^11.0
laravel new app
composer require conedevelopment/rootAfter installing the package, run the root:install command. It will run the migrations and publish the compiled assets that you may override later.
Please note: if you are using Windows, you might open your terminal or development environment as a system administrator.
Also, you may populate your local database with fake data. To do so, pass the --seed flag to the command.
php artisan install:root --seedYou may want to customize the JS and SASS files. To do so, run the root:publish --tag=root-vendor command.
php artisan root:publish --tag=root-vendor
yarn install && yarn devRoot comes with a media manager out of the box. If you are using the public driver, you may link your storage directory to make your media files visible for users.
php artisan storage:linkRoot comes with a Cone\Root\Models\User model by default, that provides some functionality. Also, it brings the default authentication services; you may keep clean your App\Models\User model and extend the one that comes with Root:
namespace App\Models;
use Cone\Root\Models\User as Model;
use Illuminate\Contracts\Auth\MustVerifyEmail;
class User extends Model implements MustVerifyEmail
{
//
}You may override the default configuration. To do so, publish the configuration file:
php artisan root:publish --root-configYou can find freshly published config in the config/root.php file.