Questions tagged [laravel-6]

Laravel 6.0 is a past main version of the open-source PHP web framework created by Taylor Otwell. It was released on September 3, 2019. Use the [laravel] tag for general Laravel related questions.

Laravel 6.0 (LTS) continues the improvements made in Laravel 5.8 by introducing semantic versioning, compatibility with Laravel Vapor, improved authorization responses, job middleware, lazy collections, sub-query improvements, the extraction of frontend scaffolding to the laravel/ui Composer package, and a variety of other bug fixes and usability improvements.

What is new:

  • Semantic Versioning
  • Laravel Vapor Compatibility
  • Improved Exceptions Via Ignition
  • Improved Authorization Responses
  • Job Middleware
  • Lazy Collections
  • Eloquent Subquery Enhancements
  • Laravel UI

Resources:

1918 questions
0
votes
3 answers

Laravel request validation doesn't show error messages

After I used group middleware, I am not able to access error messages. Error bags returns empty. There was no problem before. I have researched, some users have solved the problem by changing http/kernel.php…
tyasird
  • 926
  • 1
  • 12
  • 29
0
votes
4 answers

Solved: Laravel 6 Can't get error message of validation of array input (input with same name) with other inputs if total input are greater than 85

I am using laravel 6.10 on windows 7 (x64) wamp server (v 3.2.2.2). I am validating 1 array input and 2 text inputs. I get validation error message in blade if array size is 84 or less than that. If i increase the array size to 85. I don't get any…
Muhammad Habib
  • 350
  • 2
  • 14
0
votes
0 answers

Handling Laravel project on a local machine and an Nginx server

I have a Laravel project in my local machine that is currently in development, due to reasons, the application is showcase to people using an Nginx server, the problem is this, in the local machine I host the project in a root directory…
dierrera
  • 11
  • 2
0
votes
2 answers

Forge Laravel SSL Installation Issue w/ Cloudflare

I just migrated over to Cloudflare and got an API Token created with Read permissions to SSL/Certificates. I'm using Forge.Laravel for deployment. Previously, I had SSL working with certbot. I removed those SSL certs and tried installing with the…
Cameron
  • 719
  • 1
  • 6
  • 16
0
votes
1 answer

Vuetable-2 cannot be mounted in Laravel 6

I'm trying to use the Vue component Vuetable-2 in Laravel 6. I know the component says that it's made for 5.4, but I believe it should still work. My app.js looks like this: require('./bootstrap'); window.Vue = require('vue'); …
pato.llaguno
  • 741
  • 4
  • 20
0
votes
1 answer

How do you add many data from table B into 1 id in table A? and How do you do it in Laravel 6's Eloquent?

I have Checklists and Alats Table that has a relationship like this: 1 data in Checklists can have many data in Alats (ex: IDC001 in Checklists can have IDA001, ID002, and ID003 in Alats) The question is, how do you insert all those data into…
agastyarimbawa
  • 59
  • 1
  • 1
  • 4
0
votes
0 answers

why method not allowed exception throwing in symfony server but the code works perfectly fine on local host?

Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException The GET method is not supported for this route. Supported methods: POST. This is the error throwing on server but on my localhost there are no errors.
safwan
  • 3
  • 1
0
votes
0 answers

PusherBroadcaster error. Laravel 6 - How to Fix?

I have Laravel 6 and use pusher as a broadcast event. But I get this error (see screenshot) the error \Illuminate\Broadcasting\Broadcasters\PusherBroadcaster.php:121 screenshot stacktrace error here is my controller: public function…
0
votes
1 answer

Download a PDF file from Laravel Voyager storage

I have a problem downloading a pdf file in laravel with voyager. Someone said, i have to use 'json_decode' but I cant understand how to do so. Here is my controller: Controller class HomeController extends Controller { public function index() …
KB Tonmoy
  • 37
  • 8
0
votes
3 answers

Can I cast a custom class to a variable in blade Laravel

Can I do something similar to this in Laravel Blade: @foreach($collection as (CustomClass) $object)
InFo55
  • 13
  • 8
0
votes
3 answers

Laravel attribute not working as expected

In the current application, there is a model Part and a model Supplier. Every Part has a Supplier. public function supplier() { return $this->belongsTo(Supplier::class); } I added an accessor to get the name of the supplier. If…
Peter
  • 655
  • 1
  • 14
  • 37
0
votes
1 answer

How to lessen redundant line of code? (php)

My controller is already working and complete. But I observe redundant/repetition of the code. Specifically for the code below: $this->authorize('applicant', $job); Here's the entire code in my controller: public function interviewees(Job $job) { …
charles
  • 364
  • 6
  • 18
0
votes
2 answers

Laravel 6.10 Application works locally but fails on production server with "Target class [] does not exist."

This problem deals specifically with Laravel 6.10 and queue processing. On my local machine, the program runs fine, and all queued jobs load well and process to completion. On my GoDaddy server, I get a mysterious error when the job tries to load…
Jared Clemence
  • 1,062
  • 11
  • 26
0
votes
1 answer

Laravel pagination in Eloquent Query Builder

I need help to paginate a table that has a relationship with another using Laravel pagination. I get an error that says... too fewer argument to function Controller public function users() { $users = User::join('customers', 'users.id', '=',…
0
votes
2 answers

Laravel 6 multiple pagination in one page

I want to create multiple pagination in one page, info pagination is working perfectly. but berita pagination is linked to info and always showing info page instead of berita page. Controller $infos = Info::paginate(4, ['*'], 'info'); $beritas =…
Lee wayy
  • 73
  • 1
  • 11