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

I am solving the issues but I have got error that trying to get property 'user_role' of non object

I have a code default built-in Auth LoginController@login The login function is override also I have a users table. Basically, I'm creating Panels(Admin, Staff) from a single login page. When user_role admin exists then open an admin page otherwise…
Mubashir
  • 75
  • 1
  • 3
  • 9
0
votes
1 answer

Laravel class App\Repositories\FirebaseUserRepository not found

I'm struggling with a soo stupid message, I don't see why I cannot call my Repository class here is the controller using the class
Eloise85
  • 648
  • 1
  • 6
  • 26
0
votes
1 answer

Admin and user login on same browser with same time in laravel

I am using laravel with default auth(php artisan make:auth). I'm login as admin or user that is working well with a different time slot on the same browser. My question is when I logged in as admin and from admin want to login into the user at a new…
0
votes
1 answer

How can i make a relationship between my three Models where Distributor and Product model are directly connected with the Distributorproduct Model

Distributor Table - id Product Table - id Distributorprocuct Table - distributor_id, product_id Distributor Model - public function product() { return $this->hasMany(Distributorproduct::class); } Product Model - public function distributor() {…
0
votes
1 answer

Route [aktivitas.destroy] not defined. (View: C:\xampp\htdocs\TA\resources\views\aktivitas\index.blade.php)

I Try Made Crud Can't defined aktivitas.destroy index.blade.php
Tambah   
0
votes
2 answers

Laravel 6, "Missing Required Parameter For Route"

There i Have An Error In Laravel 6 Routes in This Code: Route::group(['prefix' => 'list', 'as' => 'list.'], function() { Route::resource('/', 'StaffsController'); // List }); In Route List Give Me An Empty Parameter That I Can't Pass It…
Elfeqy
  • 61
  • 8
0
votes
0 answers

Upload two different Laravel projects on the CPanel, connected to the same database

I'm trying to upload two Laravel projects connected to the same database on the CPanel, the two URLs worked perfectly on the browser but both of them display only one project for the two routs. I have written the same user and password of the…
hala
  • 161
  • 2
  • 13
0
votes
2 answers

Redirect to default dashboard route after successful AJAX login in Laravel 6

In my first Laravel 6 project I wrote a simple login form I submit via AJAX to standard login controller. If I insert correct credentials, login is successful but I don't know how to properly redirect to standard user dashboard (like standard…
icolumbro
  • 97
  • 3
  • 17
0
votes
1 answer

Canonical url in laravel

I'm using https://example.com version of url for my laravel built app site. I want as my canonical tag {{url()->current()}} only gives the URL that I've setup as…
psudo
  • 1,341
  • 3
  • 24
  • 69
0
votes
0 answers

How can I get the relation's name which is defined between two models?

Assume I have two models Company and Employee in Laravel 6. I defined a belongsTo and hasMany relations between Company and Employee already. Now the question is: Is there any method that I detect or determine the existing relation's name between…
MJBZA
  • 4,796
  • 8
  • 48
  • 97
0
votes
1 answer

Laravel API calls failing in Production

I'm currently working on a VueJS+Laravel 6 project. Everything is working ok in Localhost, but in Production, although the web routes work well, the API calls fail. I have no errors in the Apache log and Laravel log. Am I missing anything that I…
Inigo EC
  • 2,178
  • 3
  • 22
  • 31
0
votes
2 answers

Invalid object name with Many to Many Relationship with 2 DB Connections

I am building a training web application to track associate training and certifications. I have created an Associate model that used a secondary DB connection to another database that has its information generated by another application so I have no…
Chad Gregory
  • 118
  • 4
  • 11
0
votes
2 answers

Non-numeric value error in Laravel 6 application

Non numeric problem This my php code
    @if($row->discount_price == NULL)
  • NEW
  • @else @php …
0
votes
1 answer

Laravel 6 - How to restrict route by user field value?

Atm, I use a steamauth API to grab a users steamid and pass it into user->steamid, but I want to restrict it to, if the field named steamid in users is not null(has already a steamid) they cant enter the route and will get a redirect back. I have…
Kh4zy
  • 105
  • 1
  • 3
  • 11
0
votes
0 answers

Laravel api returning 401 (Authentication failed) even when logged in

i have created a simple crud app using Laravel 6 and VueJs it was working fine before but when i added middleware auth to api routes group it returns error 401 even when logged in. here is api.php Route::group(['middleware' => ['api','auth']],…