Skip to content

Commit e76f3da

Browse files
author
Toby Allen
committed
Revert "case sensitive naming."
This reverts commit 6b5dcd3.
1 parent 6b5dcd3 commit e76f3da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Anymodel.php renamed to src/AnyModel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use 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
}

0 commit comments

Comments
 (0)