Questions tagged [laravel-5.6]

Laravel 5.6 is a previous version of the open-source PHP web framework created by Taylor Otwell. It was released on February 7, 2018. Use it in addition to the laravel-5 tag if your question is specific to Laravel 5.6. Use the Laravel tag for general Laravel related questions.

Laravel 5.6 is a previous version of Laravel 5. It was released on February 7, 2018.

What is new:

  • Logging Improvements
  • Single Server Task Scheduling
  • Dynamic Rate Limiting
  • Broadcast Channel Classes
  • Model Serialization Improvements
  • Argon2 Password Hashing
  • Collision (Pretty CLI Output)
  • Bootstrap 4

Resources:

1859 questions
6
votes
1 answer

Laravel validation not exists in table

I have two tables, first one is students and second one is lesson_student table. They have m2m relationship between students and lessons tables. I want to check, if student_id exists in students table and not exists in lesson_student table, insert…
Nevermore
  • 1,663
  • 7
  • 30
  • 56
6
votes
3 answers

Laravel 5.6 How to schedule email queue

I'm trying to schedule an email to remind users who have to-do tasks due tomorrow. I made a custom command email:reminder. Here is my code in custom command:
Wei
  • 85
  • 1
  • 1
  • 7
6
votes
4 answers

Laravel Where Count > N

I have 2 models in my app: 1. Customer.php 2. Car.php Now I would like to run a query that returns all customers that have less than 2 cars. Where 2 is a number that can be changed by the user. I have tried this but it didn't work, it just returns…
user3718908x100
  • 7,939
  • 15
  • 64
  • 123
6
votes
2 answers

Update dateTime column with laravel

I have a pins table in my database with a pin_date column. In my migration I have this: $table->dateTime('pin_date')->nullable(); I have a button that points to a post route Route::post('/pins/pin-date/{id}', 'PinsController@pinDate'); that leads…
L. Fox
  • 328
  • 1
  • 6
  • 20
6
votes
3 answers

Laravel installer keeps installing 5.5 instead of 5.6

I installed php 7.2.2 / apache 2.4 and mysql-5.7 on windows 10. I want to install laravel 5.6 first: 1. composer clear-cache 2. composer update 3. composer global require "laravel/installer" php -v: PHP 7.2.2 (cli) (built: Jan 31 2018 19:31:17)…
ali ali
  • 161
  • 2
  • 8
5
votes
2 answers

Issue while trying to pass json of translation key-value from laravel blade to vue.js

This is my translation file return [ "Key1" => "Message 1", "Key2" => "Message 2", "Key3" => "Message 3", "Key4" => "Message 4", "Key5" => "Message 5", "Key6" => "Message 6", "Key7" => "Message 7", "Key8" => "Message…
Pankaj
  • 9,749
  • 32
  • 139
  • 283
5
votes
2 answers

Expected response code 220 but got an empty response in laravel 5.6

I am using mailgun with laravel 5.6 to send email but its return error( Expected response code 220 but got an empty response). The following is my all file settings. .env…
Aakankshi Gupta
  • 305
  • 1
  • 6
  • 18
5
votes
2 answers

Download S3 file links in Laravel

I'm trying to build a small application in VueJs as frontend and Laravel as backend where I'm uploading files in my admin section to my aws-s3 while uploading the files I'm storing the link of that file in database. Every action is maintained by api…
Nitish Kumar
  • 6,054
  • 21
  • 82
  • 148
5
votes
1 answer

How to add multiple route file using RouteServiceProvider in laravel

I want to create module wise route file and load all route files using RouteServiceProvider mapApiRoutes(). I have created category.php file and admin.php file which contains routes within it. Now i want to load this two file's routes in api.php…
Yogendrasinh
  • 151
  • 1
  • 5
5
votes
2 answers

Laravel 5.6 storage link already exists but i am getting 404 error when trying to get a file from the public folder

I've created a symlink using the command: php artisan storage:link Then I've created a file in storage/app/public. Following the documentation, I could get the link to this file with: asset('storage/file.txt') Which returns in the html…
ADEL NAMANI
  • 171
  • 1
  • 2
  • 12
5
votes
2 answers

Laravel Controller Type Hinting

After creating a model with -mcr (php artisan make:model Institution -mrc), the show function in controller was scaffolded as: /** * Display the specified resource. * * @param \App\Organization\Institution $institution * @return…
Victor Ribeiro
  • 577
  • 7
  • 20
5
votes
2 answers

Laravel testing authorization to route, middleware auth issue

Bear with me, new to testing. So, I have this current structure of middlewares: class IsActive { public function handle($request, Closure $next) { if (self::active()) { return $next($request); } …
abr
  • 2,071
  • 22
  • 38
5
votes
1 answer

How can I change color a character laravel excel maatwebsite?

I get tutorial from here : https://laravel-excel.maatwebsite.nl/3.0/exports/extending.html So I use version 3 My excel like this : I want to change it to be like this : So I want the character England change to red color and bold I try like this…
moses toh
  • 12,344
  • 71
  • 243
  • 443
5
votes
1 answer

Laravel 5.6 - Session is not persisting after it expires

I have a very weird issue with my two of my local environments. Once my session expires due to not being refreshed for too long, a new session will be created as expected. However, if I am browsing on public site (which is not under Auth…
MatusMak
  • 560
  • 4
  • 20
5
votes
2 answers

How can I pass parameter in the laravel excel?

I get tutorial from here : https://laravel-excel.maatwebsite.nl/docs/3.0/export/basics
moses toh
  • 12,344
  • 71
  • 243
  • 443