2,260 questions
0 votes
2 answers
55 views
Replace Laravel's default email validation policy
By default, Laravel's email validation does not fail on invalid email, eg 'example@example'. $data = ['email' => 'example@example']; $rules = ['email' => 'email']; $v = Validator::make($data, $...
-4 votes
0 answers
34 views
Error when deploying a Telegram bot to the server in Laravel 7
My Laravel 7 project is running on the server. I added a Telegram bot to it using Laravel itself. But when I upload it to the server, it shows an error. I zipped the 'irazasyed' folder inside the ...
0 votes
1 answer
117 views
Laravel query existence of relationships
I need to check just existence of Laravel model relationships. Is there a loader similar to withCount? Eg // with count $authors = Author::withCount('books')->get(); foreach ($authors as $author) { ...
0 votes
2 answers
73 views
How to Validate Imported Dates in Excel to Check for Invalid or Non-Existent Dates
I am working with an Excel file where users input dates, and I need to validate whether the entered date is valid (i.e., it actually exists). For example, if a user provides 31-02-2025, it should ...
0 votes
2 answers
81 views
Laravel multiple values update
Is there a Laravel functionality or package for such statement? Or perhaps is it achievable with "standard" functionality? NB This is non-working SQL, see below for correct SQL UPDATE ...
0 votes
1 answer
84 views
MultiDatabase Relationship Model
My goal is to create a project for multiple vehicle resellers. I need to stay up-to-date with new brands, models, versions, and years that are constantly being released. However, it’s not practical ...
1 vote
1 answer
49 views
PDF blob didn't display in web mobile screen in Laravel 7
I know maybe this question have been asked several times. All I want to do is display the PDF Blob in mobile screen web browser. I have tried to use embed tag and iframe tag but none of them can work ...
-1 votes
2 answers
128 views
Laravel 7 can not see videos in public storage
I have a project which contains some video files in storage/app/public/homepage/ The files are really there and in html there is something like <video autoplay muted loop> <source src=&...
0 votes
2 answers
95 views
Laravel 7 query whereBetween 2 month
I want to find data between 2 month, for example data between months 8 and 9. Edit: The issue is in this line else if ($bulan1 != "semua" && $bulan2 != "semua") { $query-...
0 votes
0 answers
58 views
PHP Fatal error: Class 'Laravel\Http\Controllers\Controller' not found
I'm new to Laravel and I'm unsure about the cause of this error: Class 'Laravel\Http\Controllers\Api\V1\Controllers' not found in C:\xampp\htdocs\public_html\local\app\Http\Controllers\Api\V1\...
0 votes
0 answers
251 views
How to Inject Services into a Queued Event Listener using Laravel 7?
I'm using Laravel 7. would like like to inject services into a event listener. Injecting their interfaces through the constructor works fine, but when I add "implements ShouldQueue" to the ...
3 votes
0 answers
66 views
Login callback goes to AWS IP instead of the domain
I have hosted my app to AWS with Cloudfront. I am using socialite for Social login. Facebook login works fine, but in Google login, it callback to ec2-x-xx-xxx-xxx.ap-northeast.AmazonAWS... Insted of ...
0 votes
0 answers
71 views
Moving Laravel project from localhost to remote
I have already read a lot on the topic without having solved the problem... I'd like to deploy an old, simple Laravel 7.x project (working perfectly locally) on a remote server (shared at 'aruba.it') ...
1 vote
3 answers
210 views
Unable to access user id through guard after login in laravel
I have this route defined in web.php web.php Route::group(['prefix' => 'user'], function () { Route::get('login', [FrontendController::class ,'showLoginForm'])->name('user.login-show');...
0 votes
1 answer
663 views
Upload csv file to SharePoint using PHP Laravel
I am referring the steps mentioned here phpSPO to include the library first in my php application using command composer require vgrem/php-spo. But when using below code to create a client, is not ...