Hello,
I would like to know how do you usually deal with meta tags in a vue app when hooking it up to Laravel please. I do not build SPA and would like to start, but I am really no sure how this will affect Seo as a whole.
I would love to hear some f
Hello,
With a pure Laravel / blade app, I have a problem : when the pages load, the screen becomes white for a while and the pages loads (less than one second), and this generates a sensation of blinking.
This comes probably from the JS scripts loadi
Hi,
How can I achieve in Laravel 11 that Number::forHumans(10000000, precision: 2) returns only the value without the unit (so the result would be 10.00 instead of 10.00 million)? Thank you for your help.
Hi !,
I'm currently dev an ecommerce app, everythings work great ( love Laravel ) , on a lot of model i put an Index column which is for display purpose only. I let the admin the possibility of reorder the display. For example if he want to show some
I’m gathering requirements for building the backend and API for a TikTok-like app and trying to decide between Laravel and Node.js. Which is better for handling real-time features, heavy media uploads, and high concurrency?
Any advice on performance,
Hello, I am currently building a Dashboard that performs multiple "fetch()" requests to the server to get data for the different charts. I am developing locally with Laravel Sail under Windows/WSL.
Looking at the Chrome DevTools Network Wat
How can I add a leading zero to a text input?
const day = ref('');
<input type="text" v-model="day" />
So, I've tried a watcher:
watch(day, (newValue) => {
day.value = newValue.toString().padStart(2, '0');
});
Thi
my validation while updating the course data by id
$request->validate([
'title' => 'required|min:3|unique:courses,title,' . $id,
]);
getting this validation msg (even i am passing the current editing course id )
The title has alr
I'm trying to merge two images together but it's not working, the images dont get merged at all.
This is my full code, whats happening is:
first check if report images does exist
generate image with rectangles and transparent background to place ove
Hi everyone,
I'm working on a system to calculate employee KPIs based on the actions they take during negotiations, this functionality contains returning of KPI and percentage of employee's kpi, according its created action, i am creating KPI here ch
Hey Laravel folks,
I'm using Laravel Horizon, but when serializing models, it serialize everything including sensitive data like hashed password, tokens and so on. And it shows all these details in the dashboard.
The SerializesModels trait help to se
Im working on a todo list for my application but i keep getting the error at subject "Undefined variable $tasks"
here is my code
CONTROLLER
public function list_task() {
// Get the currently authenticated user
$user = Auth::user();
Hello,
I have created subdomain in Herd using the command:
herd link todo.domain.com
for a project on domain domain.com.
While the subdomain works, it looks like that Laravel is unable to handle the call to this subdomain:
Route::domain('todo.domain
I created a web app using Laravel that sends reminder emails for medication refills to the admin email at xyz@domain.com, which is set up in Google Workspace. The app is hosted on GoDaddy, but it's not sending emails to xyz@domain.com email. It works
Hi folks,
I'm very new to laravel and just trying to sum a column within my pivot table of a model. How can I do that? My approach was smth. like this:
public function ingredients() {
return $this->belongsToMany('mixuino\Ingredient', 'ingr
I am having an issue where after migrating to vite from mix laravel echo does not seem to wrok properly.
I am getting the error: "Laravel Echo cannot be found" in the console. more so a warning actually.
The connection does not come trough
Hello,
I have still difficulty to understand the real difference between a Session and a Context.
A Context seems to work exactly like a Session.
Can somebody explain me ?
Thanks a lot ;).
V
What is the best approach to upgrade a Laravel project from version 5.7 to Laravel 11?
Should we install a fresh Laravel 11 project and migrate our models, views, and controllers into the new setup?
Or should we upgrade incrementally, moving from 5.
I am using spatie/laravel-permission to implement RBAC on my application.
I have made 2 roles (for now) namely Super Admin and Content where Super admin will have permission to do everything while Content role (with permission 'view_model') will only
I am having many routes which use auth:sanctum middleware
Route::group(['middleware' => ['auth:sanctum']], function () {
Route::get('/user', 'Api\AppController@user');
//... and so on
});
Now i have one route which unauthenticated users can als
Hi,
I recently enabled two factor authentication on my laravel app using Jetstream. During testing i noticed that using a recovery code to sign in actually regenerates new recovery codes. Is this normal? The user is never even notified that this happ
I'm trying to use a seperate MySQL database for testing but it appears to just be ignoring any of the setup I've done as it keeps going to my local database and wiping everything in there.
So how do I do this?
I've got a .env.testing file setup with
When having a widget on a livewire component (front-end) and I try do delete a record, I got an error:
Cannot assign null to property App\Filament\Resources\ClientResource\Widgets\ClientsStats::$tableColumnSearches of type array I have use InteractsW
I want to use uuid as my primary key inside of pivot table (many to many relationship). But I could not found a way to catch creating hook or something like that in my pivot table to generate uuid.
How can I achieve my goal?
In Laravel's authentication system, when users log in and out quickly, two session files are being created instead of replacing the existing session file. Initially, when a user logs in, everything works fine. However, upon the second quick login att
I want to use Laravel Zero + Single file PHP librar (big class with various methods) .
This library use custom API calls via curl (on backstage).
I was wonder where put this thing because:
I made http requests using this library but my app is consol
So, Telescope production requires a login in order to view the page. However, using the Laravel Breeze Nextjs/API, there's no way to login except via the API.
For example, if my site was example.com
Navigating to example.com/telescope will give 403 a
Is there any way to replace state when navigate? Currently, it always push state.
For example, if I call $this->redirect('/dashboard', navigate:true) after submitting a form, I want to make users not able to go back to the form by hitting the brow
i`m not sure why i keep getting this error i followed every steps from documentation but still not works. please help me out.
the documentation from srmklive github docs
my problem Error
Class "Srmklive\PayPal\Services\PayPal" not found
and
As i use User::findOrFail();
it's gives me method findOrFail not found in usr model
at the User Model :-
i tried -> use Illuminate\Database\Eloquent\Builder;
but no hope i see it in the documentation then it suppose still working..
I am building a query calling a collection of track to build up a track list. There’s a bunch of relationships that go with this.
A track has a song (one to one)
A track has votes (one to many)
A song has artists (many to many)
I can call all this
So i am allowing user to buy produ (adhoc). and wanting to use stripe hosted checkouts (https://laravel.com/docs/11.x/billing#single-charge-checkouts) I am using an api with a separate frontend
Here is the flow:
user clicks on a button in fronten
Hi, I have a weird situation that's been happening for about a year now. Every now and then, for some minutes, all requests who need a preflight request fail, because out of nowhere the 'access-control-allow-...' headers are missing.
I tried restarti
Hi,
I have a laravel application which has one codebase, i have multiple subdomains all point to the default public_html codebase, i have made each its own .env.subdomain.domain.com and i have written logic to detect the subdomain and load the releva
I've recently taken on a project which involves updating/rewriting an exisitng but 'disappeared' site which was written in Laravel 5.1. The previous developer has lost interest but, quite generously, has provided me with the source code and a databas
Let's assume i have following collections:
$collection1 = collect([1,2,3,4]);
$collection2 = collect([5,6,7,8]);
$collection3 = collect([9,10,11,12]);
How to use ReactPhp to process all collections concurrently like:
1,5,9,2,6,10,... instead of 1,2,
I am using laravel filament and i want to develop different forms in a resoruce for create and edit. I mean that i have 5 fields when i create and i want 3 fields only while editing it not other fields. how to do it?
Checking docs on current weather on
https://openweathermap.org/current#name
I need to get high levels of precipitation and high UV index values
I found precipitation data with description :
precipitation
precipitation.value Precipitation, mm. Please
I have a problems for testing config values in a pachage developing
Package
TestCase.php
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplicatio
I have a middleware that converts Inertia responses to non-inertia Json. This middleware is attached to all API routes.
I did this so that I could have a single controller for both API and HTTP requests. It works perfectly when testing on the browser
I am using Let's Encrypt SSL. PHP 8.3.12 — Laravel 11.29.0
In terminal after running: php artisan reverb:start --debug
It shows: Starting server on 0.0.0.0:8080 (example.com).
Getting this error in the console, it works locally.
WebSocket connection
I am working with two different APIs, both using GET requests but handling request data differently:
API 1 requires the data to be sent in the request body, even though the HTTP method is GET.
Example:
$config = [
'method' => 'GET',
'url
TL;DR
Laravel 11 now has the TrimStrings middleware built into the framework.
We have an endpoint that cannot use this middleware.
How can we "turn off" the TrimStrings middleware on this endpoint?
More Info
We're trying to use the Twilio v
I have the Official Laravel VS Code extension installed but it constantly errors as follows:
/bin/sh: php: command not found
I don't have PHP installed on the host but I do have it installed in a Docker container. Can I tell VS Code or the Official
Hi there
I am currently in a situation where I have to fake a http response in a test. The response needs to change in the middle of a test. I tried to simply call the "fake" method again and overwrite the response. This unfortunately doesn