how

Submit a question

Submit a new question to our website

how

Questions

Find answers to your question

how

Paid Support

Get paid support from out dedicated developers.

Latest Questions

Explore the latest questions and answers asked by our top developers.

Laravel adding unique data in database depending on auth user

in my userlanguage controller this is the validation $this->validate($request, [ ‘language_ID’ => ‘unique:user_language’ . Auth::user()->id, ]); but whenever I click save button, It shows this IlluminateDatabaseQueryException SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘user_language8’ doesn’t exist (SQL: select count(*) as aggregate from `user_language8` where `language_ID` = 2) the user id is 8 and […]

By The end is Neil
Published
Categorised as controller, database, laravel, php, validation Tagged , , , ,

Running multiple queues on different connections in Laravel

I have case where i have regular jobs run via a default database queue, so the configuration looks like conf/queue.php: ‘default’ => env(‘QUEUE_CONNECTION’, ‘sync’), .env: QUEUE_CONNECTION=database Now, everything works fine, however, I need to add one specific case for a queue that needs to be run on sync (converting user submitted media that need to […]

By user151496
Published
Categorised as laravel, laravel-8, queue Tagged , ,

PHP Error: Attempt to assign property "title" on null in Psy Shell code on line 1 [closed]

I’m getting PHP Error: Attempt to assign property "title" on null in Psy Shell code on line 1 error when i creating a post in php artisan tinker. How can i fix this issue? I cant seem to find the problem. My post.php <?php namespace AppModels; use IlluminateDatabaseEloquentFactoriesHasFactory; use IlluminateDatabaseEloquentModel; class Post extends Model { […]

By user16413733
Published
Categorised as laravel, php Tagged ,

Target class [ApiAppHttpControllersApiPostController] does not exist

I created a resource controller like this: php artisan make:controller Api/PostController –resource –api And I have this route: Route::namespace(‘Api’)->group(function () { Route::resource(‘/posts’, PostController::class); }); But when I try to list the routes, it shows this error: php artisan route:list IlluminateContractsContainerBindingResolutionException Target class [ApiAppHttpControllersApiPostController] does not exist. Do you know what can be the issue? The […]

By Geerk
Published
Categorised as laravel, laravel-nova, php Tagged , ,

Target [IlluminateDatabaseEloquentModel] is not instantiable while building

Peeps, I’m lost. Tried everything and after 5 hours of searching through the 10th page of Google hits, I give up. Maybe I just dont know how to ask Google the correct keywords.. I have this scenario: In lumen app, lets call it X, I have require custom packages CRUD and Storage, Storage is using […]

By SubjectX
Published
Categorised as eloquent, instantiation, laravel, lumen Tagged , , ,

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq