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
0 answers

Requested URL not found - Laravel 6

I am trying to upload a my project to the server.the first page is working properly and when i go for another page am getting error like The requested URL was not found on this server. Apache/2.4.29 (Ubuntu) Server at 142.93.209.171 Port 80. i think…
user_777
  • 845
  • 1
  • 9
  • 25
0
votes
1 answer

By default child select dropdown changed in Select any

How can I change the Second Dropdown menu into a select parent menu when I changed the menu display options? $(function() { $('select').change(function(evt) { console.log($('select option:selected').data('check')); //$('select…
Neeraj Tangariya
  • 1,159
  • 1
  • 17
  • 29
0
votes
0 answers

Laravel 6 Event Listener Mailable Queue unable to access

Environment: php: 7.4.2 laravel: 6.15.0 Scenario: Upon user registration, event(new NewUserHasRegisteredEvent($user)); is triggered. In my EventServiceProvider.php protected $listen = [ NewUserHasRegisteredEvent::class => [ …
Digvijay
  • 7,836
  • 3
  • 32
  • 53
0
votes
1 answer

Query : equals values are not equals

Welcome I am using Laravel 6.6.2 and I want to execute my query. That work if I execute my query in MySql-workbench (with sql fromat). I have this following problem, 2 equals values are not equal. $myId = DB::table("masterTable") …
0
votes
2 answers

How to fetch count from distant relationship in laravel way?

I am trying to fetch all the attributes with product count that is associated with products in the given category. table structure attributes table: | id | name | value | filterable | products table: | id | name | categories table: | id | name…
Kanchana Randika
  • 550
  • 2
  • 12
  • 27
0
votes
2 answers

How to have two update methods in resource controller laravel 6

This is my user controller where I need two updates public function index(){} public function create(){} public function store(Request $request){} public function show($id){} public function edit($id){} public function update(Request $request,…
0
votes
1 answer

Template class [] not found In AdminServiceProvider.php line 92

I want to add to my project the package "laravelrus/sleepingowl": "dev-development" . I've added in compose.json "laravelrus/sleepingowl": "dev-development". I have ran ./compose.phar update in terminal. It looks like it is installing the packages…
Urmelinho
  • 1,927
  • 2
  • 14
  • 22
0
votes
0 answers

How can I use Sessions in Laravel 6 Config File

When I try to use session on config/database.php file. I got errors: First if I use session('key'); Error: Target class [session] does not exist. Secondary: use Illuminate\Support\Facades\Session; Session::get('key'); Error: A facade root has not…
0
votes
0 answers

PHP-LARAVEL 6 Created category returns 404

I need your help please. When I create a new category at my laravel project it doesn't show the products I inserted after, but returns "404 page not found" and 2 other categories I created in phpmyadmin at the start of the project (for tests) they…
0
votes
2 answers

Cannot set property for Model class in Laravel

I'm trying add dependency injection on User class and after few hours trying, I found this way: I added this code to App\Models\User class public function __construct() { $this->roleService = resolve(RoleService::class); …
simpsons3
  • 880
  • 1
  • 11
  • 29
0
votes
4 answers

How to give Laravel 6 validation attributes a custom name for error message?

I am trying to change the way my errors display when my Laravel form is not filled in correctly. Currently, when I get an error. It displays like this. name mag niet groter zijn dan 255 karakters. Because this language is Dutch, I would like to…
Niels Bosman
  • 826
  • 1
  • 8
  • 19
0
votes
1 answer

Search HasManyThrough

I want to display all kelompoks that have the same kantors based on search keyword. i had 3 tables Kantor id nama Gugus id nama id_kantor Kelompok id nama id_gugus here is my controller : $kelompok=kelompok::with('bidang',…
Rznboth
  • 3
  • 2
0
votes
1 answer

How to pass multiple values from controller to view

I have a form which has many dropdowns which a populated from different tables when creating and editing the record here is the code
antweny
  • 67
  • 2
  • 10
0
votes
1 answer

Why is my validation rule not working in my Laravel Controller?

I am trying to write a test that checks that a date is formatted correctly. Looking at the docs it seems pretty straight-forward. Here is my test. I am submitting an invalid date format to my controller: MyTest.php /** @test */ public function…
Damon
  • 4,151
  • 13
  • 52
  • 108
0
votes
1 answer

Where to use Event Logger Controller in Laravel

I create an Event Controller to log all the request to my APIs. I know that using a controller inside other controller is not a good idea, so... Where do I have to implement it? EventController:
Guido Caffa
  • 1,201
  • 1
  • 12
  • 22