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 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
Original file line number Diff line number Diff line change 77class  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    }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments