i’m developing a Laravel 8 application I need to take values from a table, count how many occurrences I find of anagrafica_soggetto.codiceFiscale by adding the values of the field withDB :: raw (‘sum (importoResiduo) as residuo’). My problem is that I need to group these results into six bands with where clauses. The where clauses ..
I want to add an autoincremental ID to all the tags (or any tag, for that matter) in any text I save on the tinymce editor. For example: <p> Hey </p> <p> This is an example </p> <p> Thanks </p> I want this to be stores in the db as: <p id=1> Hey </p> <p ..
I’m trying to do a system that can make request of orders from different Shopify Stores (differents clients). Each user of the system will have associated a Shopify Store. And I need to make a request to the store associated to bring data of the orders and products that have in his store. Reading the ..
can some one help me to do in laravel join for 3 tables ( payments, invoice_payments & attendances) every table has (id, user_id, amount & date) i want to join 3 tables throw user_id and date by month as the date format dd-mm-yyyy to get the sum amount for every table and groupby month, user_id ..
How do I remove or delete a JWT token of all users? I tried to delete the cache folder from /storage/framework/cache/data. but no luck. Sourc..
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 ..
enter image description here see the image this question is aks in laravel certification exam in my opinion, none ans is true because it says inside web.php Sourc..
For our domain(mydomain.com) , we have an Office 365 account that takes care of emails and the website is hosted with a hosting company on a shared server. From my shared server Laravel App I was sending emails using the office 365 SMTP server. The hosting company now blocks this connection to office 365 SMTP ..
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 ..
I have gupshup account. i want to create api in laravel which will send otp to phone using gupshup account.i am new at laravel Sourc..
I am trying to make the catalog of a car web site. But I have a problem with the photos. I want that in the catalog each card has the image of the car (The cars have/will have more than one image, but I want only one to appear in the catalog), or a predefined ..
[][1] Here is my file path when I want to add my custom.css file in the head tag my site show in browser blank and when I cut this link browser show content structure without style. I am a new learner of laravel please help me https://i.stack.imgur.com/Zu5Hd.png https://i.stack.imgur.com/IU4mi.png Sourc..
i uploaded my laravel 8 project to my subdomain and i received this error file_put_contents(E:ProjectsAPIapi-worforcestorageframework/sessions/UkfntojT5Qzf99w9TR6Jvxs6iOBKlJ3TvLB6clTF): failed to open stream: No such file or directory its still using local directory Sourc..

$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..
I am making an application with Laravel 8 and Livewire. In my reportResidui.blade.php view I have integrated a livewire component called report-residui-header-filter and which I use to filter (this component works fine). The problem occurs when I perform the query, I need to filter from a table going to group the data for the field ..
My website has an XSS vulnerability. I’ve seen some good solutions to solve it. However, these methods are mostly ideal for projects written from scratch. On my current website, there are many boxes, forms etc that need user inputs. It seems difficult to change all the codes. So I need another solution to help me ..
When I try to broadcast Laravel events, the system gives this error: The slot -5705 is not covered by any node in this cluster I am using Redis as a broadcast driver and Laravel Vapor. Also, Laravel Echo Server in EC2 with the same remote Redis instance. Redis Cluster Slot command gives this: CLUSTER SLOTS ..
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 ..
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..
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 ..
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..
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> ..
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 ..

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> ..
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)’ ), ..