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

Extracting data from notification database in Laravel

I was saved my notification into database like this: public function toDatabase($notifiable) { return [ 'from' => $this->message->name, 'name'=> $this->message->email, 'subject' =>…
Ying
  • 1,282
  • 4
  • 19
  • 34
9
votes
4 answers

Redirect to Custom URL after Registration in Laravel 5.5

I am working on cart in laravel 5.5. Whenever guests click on "Add to cart", i am redirecting to login. If they have account, they will login and redirecting to product info they have selected. Otherwise they are registering. I wanted to redirect to…
Sridhar
  • 101
  • 2
  • 2
  • 5
9
votes
3 answers

How to find exact error line in laravel 5.4 blade?

I know laravel caches blade files, and when there is an error in blade, in version 5.3 error would be something like this : Undefined offset: 0 (View:b5c0ef4df49585eadd7fc1fa15b2d8a03e8c3bdd.php) line: 47 Then I can go to cached files and find the…
Ahmad Mobaraki
  • 7,426
  • 5
  • 48
  • 69
9
votes
1 answer

What is the point of writing @php @endphp instead of in Laravel Blade?

You can write PHP code like below in Laravel. @php // @endphp Alternately you can write, What is the difference between about two method? What are the advantages? For a example when we use to display something, we can use {{…
9
votes
8 answers

JWTGenerateCommand::handle() does not exist

I am using Laravel 5.4 and JWT Auth Library for user authentication in API development. After installation while i am running php artisan jwt:generate then it throws me error of Method Tymon\JWTAuth\Commands\JWTGenerateCommand::handle() does not…
Chintan7027
  • 7,115
  • 8
  • 36
  • 50
9
votes
1 answer

Laravel - SQLSTATE[42000]: Syntax error or access violation: 1064 on migration

I never had this error until now it happens when I run php artisan migrate I'm using MySQL 5.6.34 I tried everything I could think of ): and still have no luck I have a similar table to this and worked fine but for some reason, this once does not…
Yosef
  • 442
  • 1
  • 7
  • 26
9
votes
2 answers

Why doesn’t my Laravel project show the .env file on a Mac?

Why doesn’t my Laravel project show the .env file on a Mac? How to fix it?
Vichit
  • 309
  • 1
  • 3
  • 16
9
votes
1 answer

Laravel collectivehtml secure route or url

in my view page I have this route: {!! Form::open(['url' => 'forumcomment/' . $forum->slug, 'files'=>false, 'id' => 'qw-commentform' ,'class' => 'qt-clearfix']) !!}
{!!…
Sid Heart
  • 743
  • 3
  • 14
  • 38
9
votes
2 answers

How to send password to server using vue or javascript?

I have created vue components for login and registration. How do I send password to the server?? Should I just encrypt the password using bcrypt on the client side and then send it to Laravel or should I just send the plain password to Laravel and…
Pritam Bohra
  • 3,912
  • 8
  • 41
  • 72
9
votes
1 answer

Only mailables may be queued

I have to update from 5.1 to 5.4 This was code for mail with`5.1 Mail::queue('emails.welcome_client', compact('user', 'userPassword'), function ($message) use ($user, $adminEmails) { $message->subject('Welcome to Enterprise Solutions!'); …
flower
  • 989
  • 4
  • 16
  • 34
9
votes
3 answers

Condition in laravel 5 Middleware always false

I'm trying to give condition in my Middleware. Here is my script if (auth()->check() && auth()->user()->type == 'TP001') { $menu->add("User Control",array('nickname' => "user",'class'=>'treeview')) ->append(' ') …
YVS1102
  • 2,658
  • 5
  • 34
  • 63
9
votes
2 answers

SyntaxError: Unexpected token } in Vue js

My code is like this : When the code runs it throws an error: SyntaxError: Unexpected token } in But if the code is like this: …
moses toh
  • 12,344
  • 71
  • 243
  • 443
9
votes
2 answers

Laravel log max file is not working

I am using laravel 5.2, I just deployed my code on server. I am using laravel logs on the daily basis and so in the confg/app.php i added these two lines 'log' => 'daily' 'log_max_files' => 15 But it is not keeping the logs of 15 days. It is…
RAUSHAN KUMAR
  • 5,846
  • 4
  • 34
  • 70
9
votes
1 answer

How to run laravel migrations without artisan (using code)

I recently hosted a laravel project (for a customer) on shared hosting, after failed attempts to get access to the server via ssh I contacted the host who informed me that ssh service was not available for my customers hosting plan, that means I…
Fenn-CS
  • 863
  • 1
  • 13
  • 30
9
votes
4 answers

Laravel how merge two query results into a single object

I'm currently stuck on how to merge two query results into a single object . Below is my code. EDITED Model methods public static function getTeamStats($competitionId, $teamId) { return TeamCompetitionStatistics::where('competitionId',…
PenAndPapers
  • 2,018
  • 9
  • 31
  • 59
1 2 3
99
100