ytake / Laravel.Smarty

smarty template engine for laravel
MIT License
84 stars 24 forks source link

Call to undefined method Illuminate\View\Factory::assign() #49

Closed ghost closed 5 years ago

ghost commented 7 years ago

My code: Route::get('/', function () { \View::assign('word', 'hello'); });

JayBizzle commented 6 years ago

Try

Route::get('/', function () {
     app('smarty.view')->assign('word', 'hello');
});
Tofandel commented 5 years ago

This should be updated in the doc..