zizohassan / laraflat

Advanced laravel system to build admin panel
http://laraflat.com
MIT License
150 stars 76 forks source link

Trying to get property of non-object #109

Closed Ammar777 closed 6 years ago

Ammar777 commented 6 years ago

Trying to get property of non-object (View: C:\Users\One_1\Desktop\cmms\new-git-project\laraflat\app\Application\views\website\theme\bootstrap\home.blade.php)

<?php

function getSetting($name){ return \App\Application\Model\Setting::where('name' , $name)->first()->body_setting; } Arguments "Trying to get property of non-object (View: C:\Users\One_1\Desktop\cmms\new-git-project\laraflat\app\Application\views\website\theme\bootstrap\home.blade.php)"

aboessa commented 6 years ago

you forget to do db:seed write this command in : php artisan db:seed

Ammar777 commented 6 years ago

i reinstalled the project

Ammar777 commented 6 years ago

thanks