Skip to main content

Questions tagged [laravel]

Laravel is an open-source PHP web development framework created by Taylor Otwell. Laravel helps you create applications using simple, expressive syntax.

5votes
1answer
543views

User Management API

I got as task to build a simple Laravel API that should: 1 - Create User API 2 - Get Users API So I run the artisan command to ...
oderfla's user avatar
1vote
0answers
41views

Securely send data as a parameter in a Livewire action method

I have friendship functionality in my Laravel application and saw Crypt is available from within blade view templates. Is this a common practice when trying to send ...
JayDev95's user avatar
4votes
1answer
206views

Sending only modified data from a table to the backend as form data

The frontend has a table with hundreds of rows. Each row consists of different inputs (text, file, ...
pileup's user avatar
3votes
4answers
744views

Sanitize URL string for Insertion Upon DB table via Eloquent model

In my case I am saving a URL into my database via Eloquent Model: ...
Dimitrios Desyllas's user avatar
2votes
0answers
187views

Handling large amount of traits and properties in classes

I've got an open-source project that I've been working on for a while, and I'm looking for advice on handling large classes. It's a Laravel 10+ package for building forms, and everything works fine, ...
Second2None's user avatar
2votes
1answer
78views

Production-Readiness Advice for Laravel/ PayPal Integration

I am currently working on integrating PayPal with my Laravel application, and it's my first time incorporating PayPal for production use. I have written the following code and would greatly appreciate ...
titac projets's user avatar
3votes
1answer
115views

Laravel seeder for email template settings

This is my Laravel seeder for two database tables. I need to make this seeder more efficient and optimized. How can this be achieved? I would appreciate some tips. ...
Tarikul's user avatar
2votes
1answer
182views

Manually inserting or updating a row with timestamps, without Eloquent

I need to insert or update a row that has created_at and last_update timestamps. created_at ...
pileup's user avatar
2votes
1answer
120views

Script that uses an uploaded excel file to import data to the database

I wrote a script that uses an uploaded excel file to import data to the database. It checks for the image first if it can be downloaded without any error then insert the rest of the data. With ten or ...
Benjji's user avatar
5votes
1answer
828views

Update specific model attributes from a request

Background This is for an API and I'd like to use this Upsert action to take data from a request and only update the requested fields. I.e. These are partial updates and I will not update every field ...
Taintedmedialtd's user avatar
1vote
1answer
415views

Three way Eloquent relationship definition and saving in Laravel

I'm building a Laravel app (with Vue3 and InertiaJS), and I'm attempting to create relationships between three models: User Area WorkHours where WorkHours is the ...
wonder95's user avatar
3votes
2answers
246views

Laravel Event Filtering Controller

So I am currently writing a function in laravel that handles URL parameter filters. How the code works: So we have the following two URL parameters: timeframe and <...
Nifty Matrix's user avatar
1vote
1answer
130views

Laravel Eager Loading tickets from DB

So I have the following relationship in my Model: Events Model: ...
Nifty Matrix's user avatar
1vote
1answer
133views

Theme picker for Laravel 8 blogging application

I am working on a blogging application in Laravel 8. The application supports themes. In a nutshell, theme support works like this: In the views directory, I have ...
Razvan Zamfir's user avatar
2votes
2answers
509views

Route protection with custom middleware in Laravel 8

I am working on a blogging application in Laravel 8. The application assigns users roles and permissions. There is a many-to-many relationship between roles and permissions. I have created a custom ...
Razvan Zamfir's user avatar

153050per page
close