How would I proceed in building a CI/CD pipeline for a package? Specifically what is confusing is how am I supposed to enrich it with Laravel specific things.
I can set up the pipeline to run the tests which will work out of the box, however my packa...
Hi,
iam quite new to laravel. So I probably did some kind of stupid mistake.
I'm trying to create a new entry on a related model, but somehow get the following error (from the laravel.log)
local.ERROR: Method Illuminate\Database\Eloquent\Collection::...
Hi , I want to know if there is a helper that acts like a @IF blade component in this case something like this
@url(home)
@endurl
So I want this to compare the current URL against the url provided in this case home?
If there is no helper blade metho...
Hi. I use laravel for my applications and normally my apps are not so big. I'm planning now a new app. If it works i will got very much user, with every customer. So if a customer comes to my app he brings for example 50k-1m users. Now I think about...
I have a table where I need to format data in specific way to display in charts:
categories: [
"01/01/2020 GMT",
"01/02/2020 GMT",
"01/03/2020 GMT",...
Hello everyone!
I am trying to store some data into a DB. It work well when all the info is properly filled, but I sometimes the user will leave some columns blank (to fill in another moment) and here started my problem.
my form.vue method
processFor...
// For admin
use App\Http\Controllers\Manage\Administrator\OrderController;
Route::get('my-orders/by/{type}/{val}', [OrderController::class, 'by']);
// For seller
use App\Http\Controllers\Manage\Vendor\OrderController;
Route::get('my-orders/by/{typ...
Hi,
I have a loop like this;
foreach($data['cevaplayanlar'] as $user)
<div class="flex justify-between my-1">
<p>{{ $user->name }}</p><p>Puan: {{ $data['quiz']->getUserScore($use...
UPDATE: I discovered that when I cli
c:\xampp\htdocs\dev\vanilla8>php artisan serve
the pages display as expected on http://127.0.0.1:8000 but when I enter the dev path on the browser
localhost://dev/vanilla8/public
I lose the css links. I'm gu...
Hello everyone,
I want to create the data structure that will be used inside the program, it will not be used directly to return the response to a page.
for example:
I want to create the NotificationDocument which is a custom data structure ( it is n...
This is how I'm trying to use image intervention package:
public function saveImage(string $path, $image)
{
$file = $image;
$filename = Str::random(20) . $file->getClientOriginalName();
$imgResize = Image::...
Hi,
Wondering if anybody can give me some pointers, I'm using livewire to get 3 int values as they are typed however how can I use livewire to update a live total as these are updating?
I have tried just calling a function on the total field but that...
As you may have noticed, Laracasts has a new pair of pants today. A few quick notes on this:
There is no scenario where I undo three months worth of work, so please don’t be that person who flippantly writes, “Bring back the old design.†Thatâ...
Laravel Excel to export data will download empty data with headers only excel sheet!
I want to export only the filtered data from my search using excel but it will download an empty excel sheet only with headers!! please can anyone tell me where is m...
Hello,
I would like to know if Laravel has somehow a way to know that all inputs should be strtolower() without having to set it individualy to all requests.
I am not sure if I should do this manually for each element of a request or if there is a co...
Whats the best way to do this and how would i do this? i'm looking to change my average rating number to stars instead of just displaying the average rating out of five. for example if the average rating returned is 3.27 then 3.27 stars will show. Is...
Hello All.
I have been trying to figure out how to get my self going with wsl2 I have googled and read for a week.
What setup is the doc's referring to in
Getting Started On Windows
Thank You....
Hi, I am trying to simplify this
Route::prefix('{provider:slug}/{order}')->group(function () {
Route::get('clientChat', '[email protected]')->name('clientChat');
Route::get('clientSummary', 'ClientOrderControl...
Hi,
Can someone explain to me what's happening.
I have this setUp configuration.
public $user;
public function setUp(): void
{
parent::setUp();
$this->user = User::factory()->create();
}
and test case
public function test_can_create_catego...
Hello!
I am trying to refactor my code. Especially the rules in my requests, since they are repeated many times.
For this, I thought to create a static class with methods that return the rules and access those methods from the controllers. But I got...
Hello!
im working with inertia.js Vue js in my laravel 8 project
and i am trying to check if user is auth i already passed it in my controller 'auth_user' => Auth::user(), and this works fine. But i dont want to be doing this in my methods was wo...
When I try to upload an image, it creates the image name as a folder and then a .tmp file in the folder. Not sure what I did.
if($request->hasfile('avatar'))
{
$destination = 'uploads/profile/'.$user->avatar;
if(Fi...
I'm using Laravel 7 with make:auth and I have several routes after users have successful login. ie.
/profile
/todo
/some_other_routes etc
Now I would like to create a "I agree to terms and conditions" page, so if they have never accepted th...
Hi !
Having trouble with php redis extension installation.
i searched on internet but every fix i founded didn't work.
i tried sudo pecl install redis but i had :
sudo pecl install redis
PHP Warning: PHP Startup: Unable to load dynamic library 'redi...
when a router uses NAT there are two different networks local and public and they are separated and NAT maps them so why you can not have the same IP in local and public network...
As I was looking thru Squires' package (a library of prebuilt static Eloquent models for common fixture data) and noticed in their documentation that the following will display all the Countries:
<select name="country">
@foreach (...
why this livewire component does not work as it should be:
component view:
<div class="row justify-content-center mt-5">
<div class="col-9">
<form wire:submit.prevent="publish">...
In Laravel Jetstream, the API Tokens are bound to the User model by:
class User extends Authenticatable
{
use HasApiTokens; //This enables API on the user model.
...
}
However, I am also using Jetstream with Teams enabled. I wish to change...