کد PHP:
<?php namespace App ; use Illuminate Database Eloquent ; class Paint extends Eloquent { }
در پوشه routes در فایل web.php کدهای زیر را قرار دادم :
کد PHP:
<?php use App Paint ; Route :: get ( '/' , function () { $paint = new App Paint ; $paint -> title = 'Do No Wrong' ; $paint -> artist = 'D.DoRight' ; $paint -> year = 2014 ; $paint -> save (); return view ( 'welcome' ); });
خطا : Symfony Component Debug Exception FatalErrorException (E_UNKNOWN) Class 'IlluminateDatabaseEloquent' not found