Skip to content

Commit 0919604

Browse files
committed
updated model constructor
1 parent 453f28a commit 0919604

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Laravel DB Blade
22

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)
35

46
## Render Blade templates from Eloquent Model Fields
57

src/Models/DbView.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
class DbView extends Model
88
{
99

10-
public function __construct()
10+
public function __construct(array $attributes = [])
1111
{
12-
parent::__construct(...func_get_args());
12+
parent::__construct($attributes);
1313

1414
$this->setTable(config('db-blade.table_name'));
1515
}

0 commit comments

Comments
 (0)