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.

Automatically deleting related rows in Laravel (Eloquent ORM)

When I delete a row using this syntax: $user->delete(); Is there a way to attach a callback of …

php laravel
How to get client IP address in Laravel 5+

I am trying to get the client's IP address in Laravel. It is easy to get a client's IP in …

php laravel laravel-5 laravel-5.7
Laravel migration: unique key is too long, even if specified

I am trying to migrate a users table in Laravel. When I run my migration I get this error: [Illuminate\…

php mysql laravel
Download files in laravel using Response::download

In Laravel application I'm trying to achieve a button inside view that can allow user to download file without navigating …

php laravel laravel-4 laravel-routing
Bulk Insertion in Laravel using eloquent ORM

How can we perform bulk database insertions in Laravel using Eloquent ORM? I want to accomplish this in Laravel: https://…

php database laravel eloquent
Why do I have to run "composer dump-autoload" command to make migrations work in laravel?

I have built some migration classes in my application to create the tables I need, but I keep getting errors. …

php laravel laravel-5
Laravel 5 Carbon format datetime

I have an array that returns the following date time: $item['created_at'] => "2015-10-28 19:18:44" How do I change …

php laravel laravel-5 php-carbon
How to pass data to view in Laravel?

Im passing data to my blade view with return View::make('blog', $posts); and in my blade view I'm trying …

php laravel pass-data laravel-views
Laravel Migration Change to Make a Column Nullable

I created a migration with unsigned user_id. How can I edit user_id in a new migration to also …

laravel laravel-5 eloquent nullable laravel-migrations
Laravel 5 Application Key

I am new to Laravel. I just started it tonight. Actually, I have the following code: 'key' => env('APP_…

php laravel laravel-5.1