File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Laravel DB Blade
2
2
3
+ [ ![ Build Status] ( https://travis-ci.org/kiroushi/laravel-db-blade.svg?branch=master )] ( https://travis-ci.org/kiroushi/laravel-db-blade )
4
+ [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/kiroushi/laravel-db-blade/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/kiroushi/laravel-db-blade/?branch=master )
3
5
4
6
## Render Blade templates from Eloquent Model Fields
5
7
Original file line number Diff line number Diff line change 7
7
class DbView extends Model
8
8
{
9
9
10
- public function __construct ()
10
+ public function __construct (array $ attributes = [] )
11
11
{
12
- parent ::__construct (... func_get_args () );
12
+ parent ::__construct ($ attributes );
13
13
14
14
$ this ->setTable (config ('db-blade.table_name ' ));
15
15
}
You can’t perform that action at this time.
0 commit comments