Route::post(‘/update-client’, array( ‘uses’ => ‘[email protected]’, ‘as’ => ‘apiUpdateClient’, ) ); Route::post(‘/delete-client’, array( ‘uses’ => ‘[email protected]’, ‘as’ => ‘apiDeleteClient’, ) ); But, these routes are not now working in Laravel 8. Below are error details Target class [ClientAPIClientAPIController] does not exist. It works if I write like below and got it fixed Route::post(‘/update-client’, array( ‘uses’ => ..

Read more

Kindly assist, I don’t understand why I’m getting the error Class ‘DatabaseFactoriesBookingFactory’ not found after going through my code countless times! My BookingFactory.php <?php namespace DatabaseFactories; use AppModelsBooking; use IlluminateDatabaseEloquentFactoriesFactory; use CarbonCarbon; use IlluminateSupportStr; class ModelFactory extends Factory { /** * The name of the factory’s corresponding model. * * @var string */ protected $model ..

Read more

I have these tables: merchants: id – name – set_local – city_id – maintenance – active ——————— products: name – price – merchant_id (relation with merchants) ——————— users: name – email – city_id – etc .. set_local means if the merchant make it true the products just show up to users that’s belongs to the ..

Read more

I am using an Ubuntu 20.04 EC2 instance with php7.4/NGINX and Laravel 8.4 point to a PostgreSQL RDS instance (no public access) in AWS. When I try to migrate (php artisan migrate) I am getting the following error: IlluminateDatabaseQueryException could not find driver (SQL: select * from information_schema.tables where table_schema = xxxxx-db-prod and table_name = ..

Read more

I created a Laravel App. It should can authenticated via web and api. Doing so, I need two Auth Controller. One is automatically created using laravel/ui scaffolding, for the web. And the other is created manually for user’s login via token. Here is the API/AuthController <?php namespace AppHttpControllersAPI; use AppHttpControllersController; use IlluminateHttpRequest; use IlluminateSupportFacadesHash; use ..

Read more

I am getting the following error in my Laravel application at http://127.0.0.1:8000/user. Please understand, this is my first ever Laravel application. IlluminateContractsContainerBindingResolutionException Target class [UserController] does not exist. When I am trying the following code in web.php Route::get(‘/user’, ‘[email protected]’);. UserController file: <?php namespace AppHttpControllers; use IlluminateHttpRequest; class UserController extends Controller { public function index() { ..

Read more

hay i want to change this query to laravel eloquent: > SELECT tq.created_at, tt.created_at, (tt.created_at – tq.created_at) > FROM item_logs as tq LEFT JOIN item_logs as tt > ON tq.person_id = tt.person_id AND tq.item_id = tt.item_id AND > tt.id = ( SELECT test.id > FROM item_logs as test > WHERE test.id > tq.id AND test.action ..

Read more

I want to add watermark text at bottom center location in different size of images. How to achieve this in laravel Intervention Image package? This is my image upload code – $avatar = Image::make($postImage->getRealPath()); $text = Auth::user()->settings()->watermark_text; $avatar->text($text, 120, 100, function($font) { $font->file(public_path(‘fonts/PTSerif-Bold.ttf’)); $font->size(28); $font->color(‘#4285F4’); $font->align(‘center’); $font->valign(‘bottom’); $font->angle(0); }); $avatar->save(storage_path() . ‘/uploads/users/gallery/’ . $photoName, 60); ..

Read more

I have attempted to create a multi step form however whenever i try to select add product image [https://i.stack.imgur.com/r37Ph.png][1] it returns an error. Below i will show the code for my create-step1.blade.php as well as the controller. If anything else is needed to show what is causing the error please let me know. -create-step1.blade.php class ..

Read more

i’ve been trying to upload a profile image with Vue and Laravel but i just can’t get it working. I have a form: <form v-on:submit.prevent="handleEdit()" enctype="multipart/form-data"> i have a v-model for the name(onoma) and last name(epitheto), and that’s the image upload input <input type="file" id="image" @change="previewImage" accept="image/png, image/jpeg" name="image" class="input-file"> Vue: data() { return { ..

Read more