Questions tagged [laravel]

The Laravel framework is an open-sourced PHP web framework that allows developers to create dynamic and scalable web applications. The source code of Laravel is hosted on GitHub and released under the MIT license.

195,201 questions
0votes
0answers
7views

Laravel get data from 3 tables using user id

I have 3 tables users, products, and groups In the products table, user_id and group_id are present So if I give a user_id of 1, I want to get all products with each product's group name of that user. ...
0votes
0answers
15views

Make an asynchronous post request laravel to handle likes?

Currently I am handling likes like so: class LikeController extends Controller { public function like(Post $post) { $attributes = [ ['user_id', '=',...
0votes
0answers
11views

Laravel/PHP - How to split IPv6 subnets

I currently need to split a given IPv6 subnet into smaller /64 subnets. For instance I'd like to iterate though all possible /64 subnets in a larger /48 or /56 IPv6 subnet. However I couldn't figure ...
0votes
0answers
10views

Laravel/Inertia/VueJS not working on Safari

So I've been working on a SPA built with Inertia/VueJS with a Laravel API. Everything is running perfectly on Chrome but for some reason nothing is rendered on Safari. The only errors I got are: [...
0votes
1answer
18views

Laravel config usage

I have made a config test.php return [ 'name' => 'Testname', 'street' => 'Teststraße', 'street_number' => '69', 'zip' => '42077', 'city' => 'Winterfell', '...
0votes
0answers
14views

Change Laravel URL server name to custom name (Windows)

I am learning Laravel 8. And I wanted to change the laravel url from http://127.0.0.1:8000/ to a custom name, something like http://alcatraz.com:8000/. I've searched online and even previous ...
0votes
0answers
15views

Upgrading Laravel 7 to 8, seeder issue

I am seeing a lot of issues with the upgrade path from Laravel 7 to 8, but I encounter a different problem for which I cannot find an answer. It is this one Seeding: Database\Seeders\UsersTableSeeder ...
0votes
0answers
13views

Laravel - Get data from multiple table as seperate array

I have this feeds table: and feed_mappings table: I want to get all the data from feeds table and feed_mappings table which id_feed is 33. Using following query I can get the data successfully: $...
  • 1,631
0votes
1answer
18views

How to validate if at least one column is unique in laravel excel

I am using laravel Excel to import data from an excel file into the database. public function rules(): array { return [ 'brand_name' => [ 'required', 'string', ...
0votes
0answers
27views

After Register in config/app.php ServiceProvider Class not found in laravel 9

I'm trying to develop my first package but I already struggle trying to do so. I've followed 2 tutorials and done everything exactly as described however I'm getting: Class "Dkul\Admin\...
0votes
1answer
38views

Send mail using Laravel and gmail

I'm trying to send a mail using Laravel and Gmail account. I've changed .env and mail.php files several times trying stackoverflow solutions, but I get different errors. I don't know if it's important,...
0votes
1answer
19views

Use parameter with DB::raw in Laravel 9

I have this SQL query which returns all employees based on selected date : SELECT employees.id as employee_id ,employees_salaries.*,CONCAT(first_name,' ',second_name,' ',third_name) as fullname FROM ...
1vote
1answer
26views

PHP Spreadsheet populate db with all column's rows

Hello i have this portion of code: $request->validate([ 'uploaded_file' => 'required|file|mimes:xls,xlsx' ]); $excel_file = $request->file('uploaded_file'); $file = ...
0votes
1answer
21views

Pass a date as a get request on postman however i can't find data from database in laravel

I like to get my value when I pass the date in get a request. But when I pass http://127.0.0.1:8000/api//news/search/"2022-05-10" date "2022-05-10" was not found but I entered the ...
0votes
1answer
19views

convert .obj to .glb using npm+laravel

I am stopped at one point for 2 days and not able to fix. Can anyone please help me through this? Question: How can I convert .obj file o .glb? I used obj2gltf package of npm and search to implement ...

153050per page