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

How to add 1 hour to date Carbon?

I have datetime "2016-11-24 11:59:56". How can I add one hour to this date and compare it with current datetime? I tried: $date = "2016-11-24 11:59:56"; $date->addHour();
Goga
  • 405
  • 1
  • 6
  • 13
24
votes
3 answers

Can't call Auth::user() on controller's constructor

I'm trying to check if the user has permission to a certain model. Up until now (with Laravel 5.2), I added this code at the constructor: public function __construct() { if (!Auth::user()->hasPermission('usergroups')) { abort(404); …
Naxon
  • 1,354
  • 4
  • 20
  • 40
23
votes
8 answers

Disable error reporting entirely in Laravel production?

I would like to disable error reporting entirely on production, because we have some very old code we still need to fix but for now does work (yes I don't like it either). We cannot fix everything in a few days, so we need to just supress the…
online Thomas
  • 8,864
  • 6
  • 44
  • 85
23
votes
5 answers

How to set high, low and medium priority email using queue?

I am studying Job dispatching from here Problem I read that each connection has queue parameter which tell the queue name. Question is: How can I set the priority to send low or medium or high priority email? Cmd prompt I am using command: php…
Pankaj
  • 9,749
  • 32
  • 139
  • 283
23
votes
4 answers

Simulate a http request and parse route parameters in Laravel testcase

I'm trying to create unit tests to test some specific classes. I use app()->make() to instantiate the classes to test. So actually, no HTTP requests are needed. However, some of the tested functions need information from the routing parameters so…
Frederick Zhang
  • 3,593
  • 4
  • 32
  • 54
23
votes
5 answers

Laravel Passport - Grant Type Not Supported

I have installed Laravel Passport per the documentation and I have modified all areas of my code that is required. I am working on setting up Password Grant Tokens so that users will be able to get an API token when logging in with their username…
Joseph Crawford
  • 1,470
  • 1
  • 15
  • 29
23
votes
2 answers

Uninstall Laravel Valet

I installed Valet for the first time and I had some problems listed below: It throws an error saying: Unable to determine linked PHP. Even though I have PHP 7.1 installed by php-osx.liip.ch so it just goes ahead and installs PHP 7.0 with…
Sina
  • 1,092
  • 1
  • 9
  • 19
23
votes
3 answers

How do you add images to emails generated by Laravel 5.3's new notification service?

Laravel 5.3 introduces a new service called notifications, allowing the construct of emails (among other notifications) via a simple fluent syntax: return (new MailMessage) ->greeting('Hello!') ->line('One of your…
Chris
  • 54,599
  • 30
  • 149
  • 186
21
votes
3 answers

[Vue warn]: Cannot find element: #app

I have a fresh installed laravel project with all the components updated. All I did is tried to add app.js in my welcome.blade.php file, after adding the following I get this error [Vue warn]: Cannot find element: #app I followed this thread, but…
silverFoxA
  • 4,549
  • 7
  • 33
  • 73
21
votes
3 answers

Using Vue.js in Laravel 5.3

In Laravel projects prior to 5.3 I've utilised Vue.js using the script tag like this: I would then create a Vue instance specific for that page like this: