In laravel 10 app when I need to read notifications of a user..
Tag : laravel
I need help because I don’t know how to do a search and I don’t know if there’s a way to do it through a query or if the only way is to use a fo..
this code in Laravel where I want to use it as API to show it for every one that visit my app. and I want to get user ID when he is log..
I don’t know why but Laravel seems to be pushing its own css file into my site, which is fine however they have a section in the css like..
On laravel 10 app reading how scheduling works at https://laravel.com/docs/10.x/sche..
I want to use many-to-many relationship for the first time, initially I had four one-to-many relationships and all the information was displayed in index form. Then I decided to write the table of offices in many-to-many with tasks table, so I changed the codes as follows:
in task ..
I’m attempting to implement pagination in Laravel for a specific category, but I’m facing issues with adjusting the pagination offset correctly based on user input. Below is a snippet of my controller method where I calculate the pagination offset, but it doesn’t seem to work as exp..
$projectphotos = []; $photocount = 1; if ($request->hasFile(‘project_photo_url’)) { foreach ($request->file(‘project_photo_url’) as $file) { $currentDateTime = now()->format(‘YmdHis’); $filename = $initials . “_” . $photocount . ‘_’ . $currentDateTime . ‘.’ . $file->getClientOriginalExtension(); // Buat nama unik untuk setiap file $file->storeAs(‘public/project/photos’, $filename); // Simpan file ke direktori yang diinginkan $photocount++; $projectphotos[] = $filename; // Simpan nama ..
enter image description here
I have this problem when I run optimize command, it give timezone error while I set the timezone in app.php file t..
Upgrade Laravel 9..