Skip to content

Commit

Permalink
updated model constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
kiroushi committed Apr 17, 2019
1 parent 453f28a commit 0919604
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Laravel DB Blade

[![Build Status](https://travis-ci.org/kiroushi/laravel-db-blade.svg?branch=master)](https://travis-ci.org/kiroushi/laravel-db-blade)
[![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)

## Render Blade templates from Eloquent Model Fields

Expand Down
4 changes: 2 additions & 2 deletions src/Models/DbView.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
class DbView extends Model
{

public function __construct()
public function __construct(array $attributes = [])
{
parent::__construct(...func_get_args());
parent::__construct($attributes);

$this->setTable(config('db-blade.table_name'));
}
Expand Down

0 comments on commit 0919604

Please sign in to comment.