For example I have online store with keyboards and mouses tables. And on the product(keyboard or mouse) page I want to show Recommended to buy with… section where other product (keyboard or mouse) will appear. So on Keyboard#1 page may be recommended Keyboard#2 and Mouse#1, that means on Keyboard#2 and Mouse#1 pages will be recommended ..

Read more

If database is not available there is some seconds of loading. Then the log shows this error, should’nt that trigger the exception handler? (other errors end up their as expected) [2021-04-14 13:01:40] production.ERROR: SQLSTATE[HY000] [2002] Connection timed out (SQL: SELECT * FROM `list` LIMIT 1) (View: /opt/app-root/src/resources/views/err1.blade.php) {"exception":"[object] (FacadeIgnitionExceptionsViewException(code: 0): SQLSTATE[HY000] [2002] Connection timed out ..

Read more

$imagePath = (request(‘image’)->store(‘uploads’, ‘public’)); //dd($imagePath); $image= Image::make(public_path("storage/{$imagePath}"))->fit(1000,1000); $image->save(); auth()->user()->posts()->create([ ‘caption’=>$data[‘caption’], ‘image’=>$imagePath, ]); this is my code the $image variable is not getting anything and it push back the error "image source not readable" kindly help me in this. Thanks in Advance 🙂 Sourc..

Read more

I’ve found a way: S3 > BUCKET > Permissions: uncheck Block all public access S3 > BUCKET > Permissions > Bucket policy: { "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::BUCKET/*" } ] } S3 > Block Public Access settings for this account: uncheck Block all public access ..

Read more

Laravel is not changing the language I have tried these methods in controller if ($request->lang === ‘English’) { config([‘app.locale’ => ‘en’]); } else { config([‘app.locale’ => ‘ar’]); } and this method App::setLocale(‘ar’) Or this method App::setLocale(‘ar’) What should I do? Sourc..

Read more

help me to find the problem, the laravel project gives error before loading Route [people.comments] not defined I copied and pasted the route name, copied and pasted the working routes, but no, it doesn’t work. Route::post(‘/people/comments’, ‘[email protected]’)->name(‘people.comments’); And It worked when I changed method POST to GET Route::get(‘/people/comments’, ‘[email protected]’)->name(‘people.comments’); I am using this route inside ..

Read more

I am having an issue when I run php artisan migrate in laravel [TypeError] Argument 1 passed to DoctrineDBALConnection::ensureForwardCompatibilityStatement() must be an instance of DoctrineDBALDriverResultStatement, instance of PDOStatement given Sourc..

Read more

What seems to be the problem: Livewire mount seems to error out on me but diedumps fine. Steps to Reproduce: Just a simple rendering the route parameter to the commponent. Are you using the latest version of Livewire: Yes 2.4 My route Route::get(‘{name}’, Counter::class); My component blade file <div style="text-align: center"> <button wire:click="increment"></button> <h1>{{$name}}</h2> </div> ..

Read more

I am using the package https://github.com/alexusmai/laravel-file-manager which comes with either a pre-compiled js file or you may use npm to create fronted through a vue-componenet from https://github.com/alexusmai/vue-laravel-file-manager. I am using the Laravel file-manager in my application, but I would like to make customization’s to the vue files to change the front-end. What I tried so ..

Read more

Need help for activating several JS features, such as Show Data Entries, Search, Sort by, and Paginate. I’m using Laravel 8. JS Datatable // Call the dataTables jQuery plugin $(document).ready(function() { $(‘#dataTable’).DataTable(); }); View Blade @extends(‘back.index’) @section(‘content’) <main> … <div class=”table-responsive”> <table class=”table table-bordered table-hover” id=”dataTable” width=”100%” cellspacing=”0″> <thead> <tr style=”text-align: center;”> <th style=”width: 10%”>#</th> ..

Read more

This is the raw query "SELECT * FROM re_customer WHERE LOWER(email) = ‘" . $input[’email’] . "’ AND (password = SHA1(CONCAT(salt, SHA1(CONCAT(salt, SHA1(‘" . $input[‘password’] . "’))))) OR password = ‘" . md5( $input[‘password’] ) . "’) AND status = ‘1’"; I tried $customer = DB::connection( ‘oc’ ) ->table( Customer::$customerTable ) ->where( DB::raw( ‘LOWER(email)’ ), ..

Read more