Configuration

User model

Your user model needs to use the "BlogifyUserTrait". When you have added the use statement, your User model should look similar to this:

... use jorenvanhocht\Blogify\Traits\BlogifyUserTrait; class User extends Model implements AuthenticatableContract, CanResetPasswordContract { use Authenticatable, CanResetPassword, BlogifyUserTrait; ...

Publishing assets & config

From your terminal run the following command:

php artisan vendor:publish

When you run the command above all the assets needed for this package will be placed in your public folder.
And a config file will be placed in "config/blogify/"

Admin user

The published config file holds data for the admin user, this data will be used while seeding the database. Make sure to replace the dummy data with your own information.

Migrations & Seeds

To run the migrations & seed your database, you have to run the following commands from your terminal:

php artisan blogify:migrate php artisan blogify:seed

Note:The migrate command will also run the migrations required for the Tracert package

Middleware

In order to make the WYSIWYG to work perfectly you will have to add the following uri to the excepts array in the VerifyCsrfToken middleware.

/** * The URIs that should be excluded from CSRF verification. * * @var array */ protected $except = [ 'admin/posts/image/upload' ];

Note:We are still looking for a good FREE alternative but for the moment this one will do the job.

Mail

Blogify will send mails at important moments so make sure to configure the settings for your mail driver in the ".env" file of your project.

For more information please check out the official Laravel documentation.