File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66use Illuminate \Database \Eloquent \Model ;
77
88
9- class Anymodel extends Model
9+ class AnyModel extends Model
1010{
1111
1212 public $ timestamps = false ;
@@ -15,7 +15,7 @@ class Anymodel extends Model
1515 public static function table ($ tablename , $ options = []){
1616
1717 // Create a new Model and set its table
18- $ Model = new Anymodel ();
18+ $ Model = new AnyModel ();
1919 $ Model ->table = $ tablename ;
2020
2121 // Set any further options passed in before returning
@@ -30,7 +30,7 @@ public function getIDattribute(){
3030 // primaryKey and have it work so if it is requested and does not exist rather than returning '' (default behaviour)
3131 // raise an error.
3232 if (!isset ($ this ->{$ this ->primaryKey })){
33- throw new \Exception ('Anymodel ::id does not have a value. Please specify actual id field name ' );
33+ throw new \Exception ('AnyModel ::id does not have a value. Please specify actual id field name ' );
3434 }
3535
3636 }
You can’t perform that action at this time.
0 commit comments