File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/Flynsarmy/DbBladeCompiler Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 33use View , Closure , ArrayAccess ;
44use Illuminate \Contracts \Support \Arrayable ;
55use Illuminate \Contracts \Support \Renderable ;
6+ use Illuminate \Database \Eloquent \Model ;
67
78class DbView extends \Illuminate \View \View implements ArrayAccess, Renderable
89{
@@ -27,15 +28,15 @@ public function setEngine($compiler)
2728 /**
2829 * Get a evaluated view contents for the given view.
2930 *
30- * @param Illuminate\Database\Eloquent\ Model $view
31- * @param array $data
32- * @param array $mergeData
33- * @param string $content_field
31+ * @param Model $model
32+ * @param array $data
33+ * @param array $mergeData
34+ * @param string $content_field
3435 * @return DbView
3536 */
36- public function make ($ view , $ data = array (), $ mergeData = array (), $ content_field = null )
37+ public function make (Model $ model , $ data = array (), $ mergeData = array (), $ content_field = null )
3738 {
38- $ this ->path = $ view ;
39+ $ this ->path = $ model ;
3940 $ this ->data = array_merge ($ mergeData , $ this ->parseData ($ data ));
4041 if (!is_null ($ content_field )) {
4142 $ this ->content_field = $ content_field ;
You can’t perform that action at this time.
0 commit comments