Model class used inside core repository of flarum should have different name as it conflicts with illuminate components.
Today i have tried to setup flarum locally without vagrant. My requirement is to understand the api only as i am not interested in emberjs frontend app.
I followed below steps.
- Clone https://github.com/flarum/flarum repositary
- Clone https://github.com/flarum/core inside core directory of flarum.
- Run composer install --prefer-dist inside flarum
- Run composer install --prefer-dist inside flarum/core/
- Run php artisan flarum:install
- Run php artisan flarum:seed
While executing step 6 i found below error on my terminal.
[Symfony\Component\Debug\Exception\FatalErrorException]
Cannot use Illuminate\Database\Eloquent\Model as Model because the name is already in use
I have attached screenshot for reference.
Can any one have idea about this error?