mdupor mdupor
11
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...
lephro lephro
9
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::...
santino santino
7
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...
shaungbhone shaungbhone
2
Hello Guru, please help me!. I'm trying to refactor the code. Route::group(['prefix' => '{locale}', 'where' => ['locale' => '[a-zA-Z]{2}'], 'middleware' => ['setlocale']], function() { // }); I don't want to put app()->getLocale() alw...
tinkerbell tinkerbell
8
I can't share any block of codes or links laracast giving error!! you may not include links the first day you sign up...
Zafeer replied
Solved
Pixelairport Pixelairport
2
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...
uniqueginun uniqueginun
1
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",...
henrique_f henrique_f
6
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...
Nimrod replied
Solved
sunilbfcj sunilbfcj
2
// 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...
Blitzkrieg Blitzkrieg
12
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...
Rretzko Rretzko
2
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...
deep88 deep88
2
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...
deep88 replied
Solved
Marinario Marinario
10
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::...
alexvolley alexvolley
2
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...
JeffreyWay JeffreyWay
242
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...
redroseamit redroseamit
10
in local machine everything is working but in cpanel this error is showing while deleting any id item....
tinkerbell tinkerbell
1
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...
Boubou Boubou
20
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...
dionarap dionarap
9
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...
fylzero fylzero
5
I've tried doing this in resources/css/app.css @import '[email protected]/fontawesome-free/css/brands.css'; @import '[email protected]/fontawesome-free/css/regular.css'; @import '[email protected]/fontawesome-free/css/solid.css'; @import '[email protected]/fontaweso...
lemmon lemmon
8
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....
marfino3028 marfino3028
6
my html <vx-card title="Perbandingan Tipe Pemesanan"> <!-- CHART --> <div slot="no-body"> <vue-apex-charts type="donut" height="340&qu...
santino santino
4
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...
oroalej oroalej
2
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...
LuisAduana LuisAduana
2
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...
iroxbir iroxbir
3
When I install laravel/UI, I see this error. My laravel version is 7....
saidu saidu
7
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...
artisticre artisticre
3
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...
redjersey redjersey
5
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...
deshiloh deshiloh
17
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...
osama_abdullah osama_abdullah
8
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...
sr57 replied
Solved
iroxbir iroxbir
3
User.php public function getFullNaneAttribute() { return $this->first_name . ' ' . $this->last_name; } blade <td>{{ $faq->user->full_name }}</td>...
Phread Phread
6
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 (...
uniqueginun uniqueginun
2
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">...
oliverbusk oliverbusk
1
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...
Create a New Discussion Button