www888 www888
12
Hi Uisng FilePond <input id="photos" name="image[]" type="file"multipledata-allow-reorder="true"data-max-file-size="3MB"data-max-files="3"> <script> FilePond.registerPlugin...
I did update my existing project on plesk server and getting this error. same project working fine at local server in my PC...
zacharylai zacharylai
2
I am building an site, which user can deposit fund into. The fund will deducted whenever the user uses a services provided. Is it necessary to build my system to accommodate a double-entries accounting to manage the fund or am I over-complicating thi...
mohsinaliryk mohsinaliryk
3
I want to send notification to users according to their selected locale. I'm using markdown templates. I've tried to set prefer locale like following. But it is not working. public function preferredLocale() { return $this->locale; }...
I want to retrieve all users that have role_id 2 and doesnt relate to workplace with id 3 so i can attach them later to this workplace with id 3. Users with id 11 and 12 are in relationship to workplace with id 4. Users with id 13 and 14 are in relat...
dredgos dredgos
1
Hi, I am looking at how to build a tournament generator in Laravel, which will then have an API and hook up to a front-end built in something else. Currently i have a working version for a single tournament using react/redux (it randomises, then gene...
Hello, I am trying to build a very simple API and for the response format I want to follow the JSend specification https://github.com/omniti-labs/jsend. Basically what I want to do is add a status property to every response. So far I have been able t...
mohafiz mohafiz
5
Hello, I am moving an application from monolithic to microservices approach in Lumen, in the monolithic app I have orders table and products table with a one to many relationship between them. Now in a microservices approach it's reasonable to have d...
User1980 User1980
1
Hi all, How can I return an API json response with intertia please? controller return Inertia::render('Dashboard', [ 'data' => $data, ]); vue this.$inertia.get('/test-connection', {...
tebowner tebowner
9
I need a way to take a PDF or TIFF , split into separate PDFs based on 2D barcode found (split code) on a page... even if i have a tool that can split a PDF into mutliple PDFs based on page #s I searched packagist and cant find what i want? I am loo...
croftCoder croftCoder
4
referencing this discussion, https://laracasts.com/discuss/channels/general-discussion/how-to-get-related-items-from-a-many-to-many-polymorphic-relationship is it possible to make the $relatedPosts a model relationship such that it's automatically lo...
Fajar Fajar
5
draw schedules based on logins with data conditions like this schedules mapel_id user_id room_id hours_start hours_end rooms name keahlian if I use the code below Room::with('schedules')->get(); Where do I put the user_id in scheludes and i tr...
k-web-dev k-web-dev
1
I am working a Laravel application which is becoming quite large and I need to start writing and maintain documentation. I have looked at LaRecipe. https://laravel-news.com/larecipe-documentation-package What other packages and ways to write documen...
MrMooky MrMooky
2
I'm aware that there are many packages out there that "support" 2FA for Laravel. But some of them are outdated, seem insecure or are only available for Google Authenticator. Via Medium I found the Package Laraguard and was excited to implem...
toto5931 toto5931
4
My laravel project is served by Docker, with Laravel Sail. How can I debug it in VScode? My set up: windows with Docker desktop as explained here https://laravel.com/docs/8.x#getting-started-on-windows I have no particular knowledge of Linux and Dock...
Hi, I've been tearing my hair out for more than a day on an SQL query that I can't formulate with Eloquent ... It's dramatic. When I write this : $categories = DB::select(DB::raw(" SELECT categories.*, FLOOR(count(*) * 100 / {$nbFollowers}...
Yoh replied
Solved
I need to know the best way to define relations and indexes, Are there any difference between $table->unsignedBigInteger('example_id')->index(); OR ‚Äč$table->index(['example_id']);...
ToxifiedM ToxifiedM
18
I am trying to create an endpoint and send the data to then endpoint and requesting it later within the controller method. As the input value changes, it fires axios put method and pass the updated perPage data to an endpoint, I am getting a successf...
brayniverse brayniverse
1416
I'm wondering how far Laravel's reach extends to. I hail from London myself....
Hi there, I don't really know how to show the records that are only created today... Can someone help please? So I have a list of children and each child has a checkin and checkout, what I would like is to show only the checkins and checkouts that ar...
ApexLeo ApexLeo
0
Hello Everyone. I am using laravel cashier for payments. and i have implemented it on web side here is what it looks like public function payment(Request $request) { $intent = auth()->user()->createSetupIntent(); return view('page.payment', c...
Fajar Fajar
12
Why when I press the absent button nothing happens, what's wrong with this @foreach($siswas as $siswa) <form action="{{route('simpan-data.absensi-siswa')}}" method="post">...
warpig warpig
6
Hey guys, so this is part of a search modal where there's only 1 input field text, and depending on what the user types in the search bar, one of these urls will become true, at this time I don't know if it's bad practice to have so many of these and...
YuraLons YuraLons
3
There is a code like this, which is located in public function store() { // #code if ($request->hasFile('passport')) { foreach($request->file('passport') as $index => $passport){ $name = ($request->pa...
lutkabe lutkabe
2
Hi everyone, In my project the php artisan migrate is supposed to target a mysql database but it throws the following exception: PDOException::("could not find driver"). I used Tinker and all env settings are correct except the env('DATABA...
kwcham kwcham
1
I got this "This password reset token is invalid." error when creating the password reset feature using Laravel 8. The problem is the token sent by email is not matched with the token stored in database table. I used below code to check the...
Church Renewal Church Renewal
1
My project has .env .dev file that with things like the AWS S3 key and APP_KEY left intentionally blank. The idea is you clone the project, make a copy of .env .dev and name it .env, then fill in what you need. Problem is when I use Sail, it seems t...
Church Renewal Church Renewal
1
Is it possible to choose a different version of Node or NPM when building a project with Sail? I know you can choose different versions of PHP with: # PHP 8 .0 context: ./vendor/laravel/sail/runtimes/8 .0 # PHP 7 .4 context: ./vendor/laravel/sail/r...
david19 david19
1
Hello Team. In your "config.app" file, you can enable or disable your service provider. This is enabled: App\Providers\MyNewServiceProvider::class, This is disabled: //App\Providers\MyNewServiceProvider::class, How i can check in a blade...
ToxifiedM ToxifiedM
1
I am currently storing perPage data in the sessions and partially loading the data based on the perPage value selected. The problem is, I have set my prop type as number, but when the perPage data is being stored in the sessions, it is being stored a...
Reprogammer Reprogammer
2
I recently updated from Laravel 7>8, but my project is using the 7 version. Every now and then I encounter this error "Unknown named parameter" every time I open routes that have/require parameters. I am pretty sure it's because of the u...
horizens horizens
6
I'm building a site that includes the ability for Users to create playlists of tracks. I'm having a little trouble figuring out how to save a track position in a playlist when using a pivot table. Schema::create('playlists', function(Blueprint $tabl...
retaxmaster retaxmaster
5
I've got a Factory definition like this: public function definition() { $to = $this->faker->numberBetween(1, 3); return [ "ad_id" => $to == 1 ? Ad::all()->random()->id : null, "d...
Is there a way that when I fire my livewire click event that I can also toggle a alpinejs variable?...
LiamA LiamA
1
I'm building a shopping cart SPA using Laravel and Vue. Vue communicates with Laravel via the API, which is not a stateless as I'm using Sanctum for a cookie based session authentication services. For guest users I want to store the cart info in a c...
Create a New Discussion Button