for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Chuckbe\Chuckcms\Models;
use Eloquent;
/**
* @property int $id
* @property string $name
*/
class Menus extends Eloquent
{
protected $table = 'menus';
* The attributes that are mass assignable.
*
* @var array
protected $fillable = [
'name',
];
public function __construct(array $attributes = [])
//parent::construct( $attributes );
$this->table = config('menu.table_prefix').config('menu.table_name_menus');
}
public static function byName($name)
return self::where('name', '=', $name)->first();