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
2 answers

Changing Laravel auth table name and column names

I want to change the table name and some column names of laravel auth table. Change table name from 'users' to 'accounts' Change table column name from 'name' to 'username' Change table column name from 'email' to 'email_addr' Change table column…
9
votes
4 answers

How to check if table is already joined in Laravel Query Builder

I created a query. I want to join my table with students table: $query->leftJoin('students', 'learners.student_id', '=', 'students.id'); But I don't know my table joined before or not. How should I do that?
Roham Rafii
  • 2,929
  • 7
  • 35
  • 49
9
votes
4 answers

Laravel5: How to disable default scheduler message if no command is ready to run

When using the Laravel5 scheduler: * * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1 We receive the following default output if no command is ready to run: # No scheduled commands are ready to run. How to disable this…
lin
  • 17,956
  • 4
  • 59
  • 83
9
votes
1 answer

How can I dynamically change the keys that Crypt uses in Laravel?

I have been researching how to use Laravel Encryption as building a homestead encryption platform is frowned upon and rightfully so. Illuminate\Support\Facades\Crypt::encryptString('This is a secret message from user 1 to user 2'); Take the above…
Jaquarh
  • 6,493
  • 7
  • 34
  • 86
9
votes
3 answers

Unable to prepare route [api/user] for serialization. Uses Closure

I'm writing my project on Laravel. When I optimize the project, I have a problem : Unable to prepare route [api/user] for serialization. Uses Closure. I looked for any closures in web.php, but I didn't find anything …
9
votes
1 answer

Laravel: how to get direct config value in blade template?

i want to get config value in blade. config/define.php array(1 => 'Show',0 => 'Hide' ), ]; I found a code {{ Config::get('define.show') }} But i want use: {{ $showarray = Config::get('define.show') }} @foreach…
Hưng Trịnh
  • 947
  • 1
  • 12
  • 23
9
votes
1 answer

Elasticsearch syntax error with multi fields search

I watched Elasticsearch Do's, Don'ts and Pro-Tips by Itamar Syn Hershko https://www.youtube.com/watch?v=c9O5_a50aOQ I see multiple conditions in several fields in the following image: https://i.stack.imgur.com/CGbCC.jpg I tried to make it in…
mstdmstd
  • 586
  • 15
  • 39
9
votes
3 answers

Laravel 5 Full Text Search

I have a db table with fields first_name and last_name. I need to check if the credit card holder name given by Asiapay is part of my traveling party (records in my db table). Issue is that credit card holder given is full name (single field) So far…
kissartisan
  • 155
  • 1
  • 1
  • 11
9
votes
4 answers

Laravel Passport Multiple Authentication using Guards

Can we use laravel passport with different guards to authenticate APIs for two different types of users. For example we have driver app for driver user and vendor app for vendor user. Both have their different models Driver and Vendor. How can we…
9
votes
3 answers

Laravel 5.6: Migration from a specific folder

I am trying to use php artisan migrate --path="/database/migrations/ef to use only the migrations in that path. But I got "Nohting no migrate" and the migration files are in that direction. I tried to adding this to boot method in…
alfredjmg
  • 388
  • 1
  • 6
  • 17
9
votes
2 answers

SSH connection via PHP - Laravel

Hello everyone I'm going to try to explain my problem as clear as possible, feel free to ask me more precision if you didn't understand what I meant and forgive my English this is not my mother tongue. My goal What I want to do looks simple.…
McKenneii
  • 276
  • 2
  • 18
9
votes
2 answers

Glide library | image not loading up

I'm trying to enable this library for my localhost environment. http://glide.thephpleague.com/1.0/config/integrations/laravel/ Current Laravel version 5.5 gd2 is enabled in wamp extensions. I can't seem to find where the problem is. Path is OK,…
Sizzling Code
  • 5,932
  • 18
  • 81
  • 138
9
votes
7 answers

Cannot drop index '***': needed in a foreign key constraint

I have created unique index: $table->unique(['owner_id', 'promoter_id']); and now i tray drop it $table->dropUnique(['owner_id', 'promoter_id']); General error: 1553 Cannot drop index 'connections_owner_id_promoter_id_unique': needed in a…
napalias
  • 1,145
  • 1
  • 10
  • 21
9
votes
4 answers

Laravel 5 WebPack JQuery - $ is not defined

I Have webpack.min.js: mix.webpackConfig(webpack => { return { plugins: [ new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', 'window.jQuery': 'jquery', …
AnD
  • 3,060
  • 8
  • 35
  • 63
9
votes
1 answer

Laravel Echo 'Client can not be authenticated, got HTTP status 405'

I am able to run laravel-echo-server on my local environment using HTTPS settings just fine. However, it seems that there is an issue on my production server (which is Forge-based): Client cannot be authenticated, got HTTP status 405 I was able to…
boisterouslobster
  • 1,283
  • 3
  • 25
  • 54