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
1
vote
1 answer

Group by email and question_id

Im developing a small app that is able to create surveys, and in these surveys have question, where a question could me a simple input form or in a form of checkboxes. My issue is related with the multiple values (radio inputs), i have a table…
Pedro
  • 1,459
  • 6
  • 22
  • 40
1
vote
2 answers

How to put input textarea in an array? (Laravel 5.3)

My view blade is like this : @foreach($reviews as $key => $review) ...
{!! Form::open(['route' => 'message.review.update', 'method' => 'post', 'id' => 'reviewform']) !!}
1
vote
2 answers

Ternary operator sort syntax can't work in laravel blade

laravel blade ternary operator {{ isset($name) ? $name : 'Default' }} we can write short form {{ $name or 'Default' }} but it returns the Boolean value when implement like: {{$videos->count() or 'no video' }} //if count return 1 always, but…
Al-Amin
  • 748
  • 2
  • 13
  • 28
1
vote
3 answers

How can I use auth on vue component ? (Vue.JS 2)

My view blade like this : @if (Auth::user()) @else Favorite …
moses toh
  • 12,344
  • 71
  • 243
  • 443
1
vote
1 answer

Laravel 5.3: accessor value doesnot JSON encode

I am making a crud application using Laravel 5.3, ajax. I am using a an accessor on my Employee model as following:- class Employee extends Model { protected $table='employees'; protected $primaryKey = 'id'; protected $fillable= …
Mrsk
  • 129
  • 5
  • 13
1
vote
2 answers

Calling a view through id in laravel

I have different files in views folder in navbar folder I have navbar-1 navbar-2 Now I am calling it dynamically by giving it an id like @include('index_store.navbar.navbar-{{ $layout->navbar_id }}') Where as $layout->navbar_id = 1 But it says…
Alen
  • 1,221
  • 5
  • 21
  • 43
1
vote
2 answers

Syntax error in server not on localhost

I have this link: List of all members and this route: Route::get('/list', 'NyfnController@list'); controller method: public function list() { $users=User::orderBy('district_involved')->get(); …
Steve
  • 1,622
  • 5
  • 21
  • 39
1
vote
1 answer

Pagination after search only works on the first page

The first page will be sorted correctly. However, the second page (and further) will go back to being as if no fields in the search were filled at all. I am collecting the search fields in the form below: {{ Form::open(['route' =>…
user6369603
1
vote
2 answers

What can cause all routes to return Unauthenticated error when upgraded from Laravel 5.2 to 5.3?

I just upgraded my app from Laravel 5.2 to 5.3 and followed all the steps. The one that seems to be the cause of the issue I'm facing is Auth Middleware. I did change the class that should be executed. But for some reason, all the routes are…
Ashit Vora
  • 2,902
  • 2
  • 27
  • 39
1
vote
0 answers

Laravel : Resource update MethodNotAllowedHttpException

I saw some people with the same problem but none of the given responses could help me. I'm currently learning how to use Laravel 5.3 and I have a problem with resources. I've created the following resource in…
user6151807
1
vote
2 answers

Laravel custom error page not displaying for TokenMismatchException

Whenever I get a TokenMismatchException error, the Chrome tools show the HTTP response code is 500. However, I'm not seeing my errors/500.blade.php custom error page. How can I get this to work as expected?
zundi
  • 2,361
  • 1
  • 28
  • 45
1
vote
1 answer

How can you change the driver for the Laravel basic authentication middleware?

I would like to use the basic authentication middleware from Laravel, except not use a database behind it. By default, the auth.basic middleware will use the email column on the user record as the "username". Is there a way to change this to the…
Stephan-v
  • 19,255
  • 31
  • 115
  • 201
1
vote
1 answer

How to add alias on self laravel eloquent ? Laravel 5.3

My query mysql like this : SELECT * FROM categories a JOIN categories b ON b.parent_id = a.id JOIN products c ON c.category_id = b.id WHERE a.id = 1 I want change it to laravel eloquent On the model category, I try like this…
samuel toh
  • 6,836
  • 21
  • 71
  • 108
1
vote
1 answer

laravel: cant receive email in gmail using mail

I'm using laravel and i can successfully send mail without an error but the problem is i'm not receiving any emails and I've already tried it via localhost and free hosting. here is my env…
Christian
  • 417
  • 1
  • 5
  • 11
1
vote
2 answers

How to delete an array inside an array based on value

I have an array in session array:7 [▼ 0 => array:2 [▼ "store" => "store1" "product" => "1" ] 1 => array:2 [▼ "store" => "store2" "product" => "2" ] 2 => array:2 [▼ "store" => "store3" "product" => "4" ] ] I made…
Alen
  • 1,221
  • 5
  • 21
  • 43
1 2 3
99
100