Top "Laravel" questions

Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern and based on Symfony.

Access Controller method from another controller in Laravel 5

I have two controllers SubmitPerformanceController and PrintReportController. In PrintReportController I have a method called getPrintReport. How to access this method …

laravel laravel-5
Laravel - Eloquent "Has", "With", "WhereHas" - What do they mean?

I've found the concept and meaning behind these methods to be a little confusing, is it possible for somebody to …

laravel orm eloquent relational-database relationship
Laravel 5.4 create model, controller and migration in single artisan command

I can create a model and resource controller (binded to model) with the following command php artisan make:controller TodoController …

laravel laravel-5.4 laravel-artisan
Laravel 5: Display HTML with Blade

I have a string returned to one of my views, like this: $text = '<p><strong>…

laravel laravel-5 blade
In Laravel, the best way to pass different types of flash messages in the session

I'm making my first app in Laravel and am trying to get my head around the session flash messages. As …

session laravel laravel-4
Doing HTTP requests FROM Laravel to an external API

What I want is get an object from an API with a HTTP (eg, jQuery's AJAX) request to an external …

php http laravel request
Laravel 5 – Remove Public from URL

I know this is a very popular question but I haven't been able to find a working solution for Laravel 5. …

php .htaccess laravel mamp laravel-5
How to place the ~/.composer/vendor/bin directory in your PATH?

I'm on Ubuntu 14.04 and I've been trying all possible methods to install Laravel to no avail. Error messages everything I …

bash laravel path
Laravel Eloquent "WHERE NOT IN"

I'm having trouble to write query in laravel eloquent ORM. my query is SELECT book_name,dt_of_pub,pub_…

laravel laravel-4 eloquent
How can I resolve "Your requirements could not be resolved to an installable set of packages" error?

When I run composer update I receive some wired output. Here is my composer.json look like. { "name": "laravel/laravel", "…

laravel laravel-4 composer-php