You can pass data to the view using the with
method.
return View::make('blog')->with('posts', $posts);
More Related Contents:
- Get first and second element of array [duplicate]
- What are these exactly?: Composer, Git and Pyrus [closed]
- Getting particular object
- Laravel combined OR AND Solution
- Property Property Property [title] does not exist on this collection instance does not exist on this collection instance does not exist on this collection instance
- Laravel 5 – How to access image uploaded in storage within View?
- Laravel 5.2 Validation Error not appearing in blade
- Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error
- How to use SHA1 encryption instead of BCrypt in Laravel 4?
- Eloquent ORM Code Hinting in PhpStorm
- How do I redirect after download in Laravel?
- How to execute Stored Procedure from Laravel
- Custom Laravel validation messages
- Proper Repository Pattern Design in PHP?
- How to redirect back to form with input – Laravel 5
- “No such file or directory” or “No such host is known” when running migrations
- Laravel Escaping All HTML in Blade Template
- Laravel form html with PUT method for PUT routes
- How to set session timeout in Laravel?
- Can I do Model->where(‘id’, ARRAY) multiple where conditions?
- How to create a subquery using Laravel Eloquent?
- Eloquent model mass update
- Eloquent many-to-many-to-many – how to load distant relation easily
- laravel 5.3 new Auth::routes()
- How to return custom error message from controller method validation
- Laravel collection converts array to object
- Laravel extend Form class
- Error 405 (Method Not Allowed) Laravel 5
- Can’t make Laravel 4 to work on localhost
- find in set in laravel ? example