Questions tagged [laravel-5.3]

Laravel 5.3 is a past version of the open-source Model-View-Controller framework for PHP created by Taylor Otwell. It was released on August 23, 2016. Use it in addition to the laravel-5 tag if your question is specific to Laravel 5.3. Use the laravel tag for general laravel related questions.

Laravel 5.3 is a past version of the open-source Model-View-Controller framework for PHP created by Taylor Otwell. It was released on August 23, 2016.

What is new:

  • Notifications
  • WebSockets / Event Broadcasting
  • Laravel Passport (OAuth2 Server)
  • Search (Laravel Scout)
  • Mailable Objects
  • Storing Uploaded Files
  • Webpack & Laravel Elixir
  • Frontend Structure
  • Routes Files
  • Closure Console Commands
  • The $loop Variable

Resources:

4266 questions
28
votes
3 answers

Is it possible to change props value from method in Vue component?

I have a component and i am passing value 543 to props :prop-room-selected, Now, From a button click, i am calling the function updateCoachStatus to change the value of…
Rubanraj Ravichandran
  • 1,213
  • 2
  • 17
  • 26
28
votes
3 answers

Laravel Eloquent Union query

So I have the following query: $a = Model::where('code', '=', $code) ->where('col_a', '=' , 1) ->orderBy(DB::raw('FIELD(layout, "normal", "split", "flip", "double-faced", "") ASC, layout')) $b = Model::where('code', '=', $code) …
Howard
  • 3,648
  • 13
  • 58
  • 86
28
votes
9 answers

How to change reset password email subject in laravel?

I am beginner in Laravel. Currently I am learning this framework. My curent Laravel version is 5.3. I am scaffolding my auth by using php artisan make:auth All are working fine. Also I configured gmail smtp in my .env file and mail.php in config…
Chinmay235
  • 3,236
  • 8
  • 62
  • 93
28
votes
4 answers

Call to undefined method Illuminate\Database\Query\Builder::notify()

Issue in Laravel 5.3.6 when submitted request in Forgot Password. Error Details Call to undefined method Illuminate\Database\Query\Builder::notify() Issue is in below file:…
Pankaj
  • 9,749
  • 32
  • 139
  • 283
27
votes
1 answer

How to add comment in Mysql column using Laravel Migrations

This is what I am trying to do if (!Schema::hasColumn('account_settings', 'minimum_onsite_length')) { Schema::table('account_settings', function (Blueprint $table) { $table->unsignedInteger('minimum_onsite_length') …
FULL STACK DEV
  • 15,207
  • 5
  • 46
  • 66
27
votes
7 answers

Laravel : $request->hasFile() is not working

I have a form where i get the title,description and an image. When i dd($requests->all());, It returns the following which is correct. array:4 [ "projectTitle" => "asd" "project_description" => "asd" "project_image" =>…
user6519911
27
votes
2 answers

How to fetch current locale in view in Laravel 5.3

I am making a bilingual app. I am using same routes for each but I am using different views for both languages. Whenever I want to redirect to a route I want to pass {{ route('test.route', 'en') }}. Where I am passing en, I want to fetch the current…
Fahad Khan
  • 335
  • 1
  • 4
  • 14
27
votes
3 answers

How to add new value in collection laravel?

I have the following loop where I try to add a new value: foreach ($pro->sig()->get() as $key => $sig) { $sig->val = 2; } When I print the output of $pro->sig() I don't have the new value $sig->val
MisterPi
  • 1,471
  • 5
  • 17
  • 23
26
votes
2 answers

Laravel 5.3 db:seed command simply doesn't work

I do everything by-the-book: Installed fresh Laravel 5.3.9 app (all my non-fresh apps produce the same error) run php artisan make:auth create migrations for a new table `php artisan make:migration create_quotations_table…
Peter
  • 2,634
  • 7
  • 32
  • 46
25
votes
6 answers

How to get average of column values in laravel

Lets say I have this column star ---- 1 3 3 1 2 5 3 It has seven rows and there are integer values! I want to have it added and divided by the rows there are. How do I do it in laravel. I can do it in plain php but I want to…
Alen
  • 1,221
  • 5
  • 21
  • 43
25
votes
2 answers

Vuejs js for multiple pages, not for a single page application

I need to build an application using laravel 5.3 and vuejs 2, because I need to use two-way binding rather than use jquery. I need to set up the views with blade templates. Then, I need to use vuejs in each page as mentioned below.…
Dinuka Thilanga
  • 4,220
  • 10
  • 56
  • 93
25
votes
2 answers

api or web Laravel 5.3

I have a question that might sound silly to you so please forgive me. I am not sure when do I use the routes/api.php file. If I want to delete a record from a datatable with ajax, do I need to create a separate controller and put the route in…
Sigal Zahavi
  • 1,045
  • 2
  • 21
  • 42
24
votes
1 answer

Auth not working in Laravel Tinker

From within Tinker I am trying to: >>> Auth::loginUsingId(12); => false >>> Auth::user(); => null >>> Auth::attempt(['email' => 'my@email.com']); => false I am guessing that since Auth typically uses session data, and maybe sessions don't work with…
ajon
  • 7,868
  • 11
  • 48
  • 86
24
votes
4 answers

Laravel 5.3 Passport JWT Authentication

Earlier when I was using laravel 5.2, i used a third party package https://github.com/tymondesigns/jwt-auth/ for making JWT based authentication. Where we just had to pass the username and password to get a token. Now in laravel 5.3 with the…
Phantom007
  • 2,079
  • 4
  • 25
  • 37
24
votes
2 answers

Laravel 5.3 - Single Notification for User Collection (followers)

When I have a single notifiable user, a single entry in the notifications table is inserted, along with a mail/sms sent which is perfectly working via channels. The issue is when I have a user collection, a list of 1k users following me, and I post…
Wonka
  • 8,244
  • 21
  • 73
  • 121