Questions tagged [laravel-5]

Laravel 5 is a version of Laravel released between 2015 and 2020. Laravel is a an open-source PHP web development MVC framework created by Taylor Otwell which helps you create applications using simple, expressive syntax. Use the laravel tag for general Laravel related questions.

Laravel 5.0 was released on 4th February 2015, and Laravel 5.8 in 2019. Both Laravel 5.8 and Laravel 5.5 LTS received their last security patch in 2020.

Laravel 5 uses the latest components and techniques of Design patterns and 's components. Laravel uses Composer for managing dependencies. Laravel has its own optional templating engine called Blade.

Make sure you have the following minimum PHP version for each Laravel version.

5.0 requires >= 5.4

5.1 and 5.2 requires >= 5.5.9

5.3 and 5.4 requires >= 5.6.4

5.5 requires >= 7.0.0

5.6, 5.7, and 5.8 requires >= 7.1.3

Laravel Versions

5.8 - Changelog

5.7 - Changelog

5.6 - Changelog

5.5 LTS - Changelog

5.4 - Changelog

5.3 - Changelog

5.2 - Changelog

5.1 LTS - Changelog

5.0 - Changelog

Useful documentation

Pros

  1. It uses a blade template that is fast and maintains a cache
  2. Expressive syntax
  3. Reusability of code
  4. Laravel 5.5 is the latest LTS release; Laravel 5.1 was the first LTS release

Useful Tags

Other resources

43708 questions
9
votes
1 answer

Laravel 5.5 unique validation rule on seperate table with different column name

So I have users and companies. A user belongs to one company. I want to validate a user registration so that the business_name field they use to register is unique in the companies table, the goal is to not allow users from creating duplicate…
user3574492
  • 6,225
  • 9
  • 52
  • 105
9
votes
2 answers

laravel and swiftmail shows Process could not be started [The system cannot find the path specified]

I am writing an app that send mail to the client using laravel and swiftmailer but I get Process could not be started [The system cannot find the path specified.] error. Here is my code env settings MAIL_DRIVER = smtp MAIL_HOST =…
shabz4real
  • 451
  • 1
  • 5
  • 7
9
votes
1 answer

sizeof(): Parameter must be an array or an object that implements Countable

help me please geting error sizeof(): Parameter must be an array or an object that implements Countable ErrorException {#654 ▼ #message: "sizeof(): Parameter must be an array or an object that implements Countable" #code: 0 #file:…
Ulai Nava
  • 167
  • 1
  • 1
  • 12
9
votes
4 answers

How to tell Deployer to use different PHP version once ssh'ed to my shared hosting?

I'm experimenting with Deployer to deploy Laravel application into shared hosting (using laravel recipe) from my local ~/Code/project_foo. The point is that when I'm connected to my shared hosting server via ssh, then default php -v version is…
Matt Komarnicki
  • 5,198
  • 7
  • 40
  • 92
9
votes
3 answers

Instagram Integration on Laravel 5

I kept getting this issue after installing this package below https://github.com/vinkla/instagram into my Laravel 5.1 project. I followed everything in the instruction. I am on Mac OS X, PHP 7.1, Laravel 5.1. Did I forget something?
code-8
  • 54,650
  • 106
  • 352
  • 604
9
votes
2 answers

How to execute more than one background process in laravel?

First of all, I know about queues and now have good experience with queues. The problem with the queue is, it is a queue. I want to execute multiple functions or commands together in the background. Queues will keep second command or function in a…
Adarsh Sojitra
  • 2,059
  • 1
  • 27
  • 50
9
votes
4 answers

How to create custom controller in Laravel Voyager

I am very new in Voyager. I have got all the controllers inside TCG\\Voyager\\Http\\Controllers while installing Voyager but didn't find other controllers those I have created using BREAD. Besides that I want to create custom controller in my…
raff
  • 423
  • 4
  • 13
  • 28
9
votes
1 answer

Clone Database into Different Name in Laravel

Hi I am new to Laravel. In our project ,we have to clone the current database into same server with different name.For example if our current database name is "test" means , I have to clone the database(test) into same server with different name…
9
votes
5 answers

Preview Mail Notification in browser

With Laravel, according to the documentation, I can return a Mailable via a controller to display it in the browser. It helps to preview mails. Is there a way to preview Mail Notifications in browser? I tried: return (new…
rap-2-h
  • 30,204
  • 37
  • 167
  • 263
9
votes
2 answers

Laravel consider only the required columns from the request and ignore any other key values if present

In the Laravel API, I am passing the request input json with few additional key:values which I require in other part of the business logic of the API function. When I pass the array $request->all(), of the formal parameter Request $request of the…
Vrajesh Doshi
  • 744
  • 2
  • 8
  • 27
9
votes
2 answers

Why supervisor faild to start the program?

I am working with laravel queue jobs with Redis and using supervisor to manage multiple workers. I have more than one numprocs which working perfectly for some days and then the supervisor goes down even if the supervisor in active state. Because…
Bibhudatta Sahoo
  • 4,808
  • 2
  • 27
  • 51
9
votes
4 answers

Required field only if another field has a value, must be empty otherwise

My question is about Laravel validation rules. I have two inputs a and b. a is a select input with three possible values: x, y and z. I want to write this rule: b must have a value only if a values is x. And b must be empty otherwise. Is there…
rap-2-h
  • 30,204
  • 37
  • 167
  • 263
9
votes
2 answers

When to use events in Laravel

I am new to laravel, and I have a question about the usage of events. As far as I understand, events are used when some actions such as registering users occur and handle logic following those actions such as sending a confirmation email. But what I…
smchae
  • 1,035
  • 3
  • 17
  • 39
9
votes
3 answers

How to access to variable in outside the map function in Laravel PHP

public function test() { $x = 10; $collection = collect([0, 10, 20]); $collection = $collection->map(function ($item, $key){ return $item + $x; }); } I want to access the $x variable within the map…
Janaka Pushpakumara
  • 4,769
  • 5
  • 29
  • 34
9
votes
3 answers

How to check if validation fail when using form-request in Laravel?

I am trying to write a CRUD for an API. However, when the validation fail, instead of redirecting the user to the home page, I want to return json based response with the errors. I am able to do that using the following code public function…
Junior
  • 11,602
  • 27
  • 106
  • 212
1 2 3
99
100