zaster zaster
1
current_team_id is available in my users table and since i am not planning to use jetstream teams , i have decided to take it off from my users table //$table->foreignId('current_team_id')->nullable(); Will that be a bad practice considering f...
CodeCanyon CodeCanyon
0
In my laravel version 7 application, I have written a custom artisan command for accessing aws cli for pushing files to S3 from laravel. Artisan command code: <?php namespace App\Console\Commands; use Illuminate\Console\Command; class PushFiles...
mr_abhineet mr_abhineet
3
Does livewire contains some security measures for cross-site request forgery??...
splatEric splatEric
0
I have been working with setting up using the Mailgun API with the standard Laravel options, and have been getting a lot of silent failures from misconfiguration. After some testing, I have found that if set the MAIL_MAILER to mailgun, and don't conf...
Flerovium Flerovium
2
Hi guys, I want to use aleatory distribution in one of my works. For example, given that I have $amount = 100,000; $recipients = 300; $transactions = 400; I need to use aleatory distribution on $recipients based on $transactions. It is like recipient...
WizAmit WizAmit
8
Update It was not an issue with livewire. Somehow, the eager loading of relationships was causing a circular reference, so the server stopped responding. Works fine when I removed all eager loading. Thanks to all for helping. Question Hi, The follow...
thebigk thebigk
2
I wish to display date on my posts as "Today, 11:35 am". How can I do that with Carbon library?...
thebigk replied
Solved
noblemfd noblemfd
1
I am using Laravel-8 api passport for a project. I have created the user registration as shown below: public function register(Request $request) { $validatedData = $request->validate([ 'name' => 'required|max:55', 'email' =&...
I've tried a few things here, and perhaps I'm overestimating what this is supposed to do, but I can't seem to get it to work the way I want it to. Here's in my Livewire component session()->flash('flash.banner', 'Note successfully added!'); And m...
iamamirsalehi iamamirsalehi
1
Hi there, I have a token like 1|bTNlKViqCkCsOJOXWbtNASDKF7SyHwzHOPLNH and I wanna find the user by this token. note: I can not use auth()->user in a specific controller. thanks in advance...
boyjarv boyjarv
2
When I run php artisan migrate SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known (SQL: select * from information_schema.tables where table_schema = ambassador and table_name = migrations...
ahmadsiddeeq0 ahmadsiddeeq0
10
i made a chat system using jquery and turbolinks and i was using short polling to refresh the content of the page to check for new messages . now i am migrating to websocket (larave-websocket), i pass all the things i need like this : $message=Messa...
lvlNewbie lvlNewbie
1
Hi, I have a model to edit post, where the post id is assigned to edit modal from a button like this @click.prevent="$dispatch('edit-post-modal', { reply_id:'{{$comment->id}}' })" The above works fine as for editing the post, but this br...
Hi, I was going through the QuickStart for LiveWire and created a counter. I adjusted the code so that it increments every 1 second. <div style="text-align: center"> <button wire:poll.1000ms="increment">+</butto...
ChrisxHart ChrisxHart
5
Hi all, trying to write a query below and saying the transactions_sum_amount isn't a column. Context: A goal has many transactions, amount is per transaction. A goal also has an amount. // Query throws an error request()->user()->goals()->wi...
nmtechnology nmtechnology
21
Here is my situation, only my welcome/index page only loads and displays fine when deployed onto the server then my links to the other blades produces a "page not found" error message in the browser even though I know the blade files are th...
lemmon replied
Solved
quyle quyle
3
Hi, I was trying to overwrite onceBasic() of SessionGuard class whose facade is Auth... Following the advice from this SO: https://stackoverflow.com/a/22663910/11297747, https://stackoverflow.com/questions/39647329/how-can-i-override-laravel-facade-m...
martinro martinro
5
Good day all! I'm having difficulties querying a json column. This is what's stored in the field: [ { "key": "NXtQTr1wa6XCGjfH", "layout": "meta_data", "attributes": { "meta_t...
PiousVenom PiousVenom
2
I have a form on one of my blades. Code: <form action="{{route("addNewPlatform")}}" method="POST" class="navbar-form navbar-left" id="newPlatForm"> @csrf <div class="...
JavedBaloch JavedBaloch
5
Hi, Previously I was using this code to store multiple data in DB, But the requirement is like If the data doesn't exists create it, if exists update the same data public function saveSessionGrades(Request $request) { $data = collect($req...
DDSameera DDSameera
4
When i try to run this code. php artisan view:cache , then i got following error. please help me to fix it. C:\wamp64\www\lms>php artisan view:cache Compiled views cleared! InvalidArgumentException Unable to locate a class or view for comp...
xxorpdo xxorpdo
0
Using library baopham/laravel-dynamodb for serverless integration, When trying to use saveAsync or create. It do not throw an exception on primary key already exists? Any way to know if data already exists or not?...
susant susant
0
This is the rate table. According to zone and cart weight, I want to give consumers an option to choose different available tier rates and the tier rates will be managed by the admin. With Laravel, I am trying to structure this in RDBMS and I am stuc...
JavedBaloch JavedBaloch
2
Hello, I have three Models, A session has many SessionGrades class Session extends Model { public function sessionGrades() { return $this->hasMany(SessionGrade::class); } } Now I'm able to fetch Session and SessionGrades but Each...
marosmjartan marosmjartan
1
Hello guys! I'm trying to deploy a nuxt application with a Laravel backend into production. The application uses nuxt-authentication and laravel sanctum via cookies (not JWT). So far so good, everything works... except authentication and post reques...
neomuckel neomuckel
8
Hello, i try to learn tailwind. i want a row above the menu with contact points like email and telephone. but my distance from left and right is different. can you help me please? https://play.tailwindcss.com/Elfab8ZSG2...
tykus replied
Solved
danielhe4rt danielhe4rt
2
I'm trying to make some 3rd party authentication on my application but when I get redirected, the session vanish and I don't really know why it is happening. Here's my code: public function getAuthenticate(Request $request) { $code = $req...
warpig warpig
2
I have a "banner"/"jumbotron"/"main header"/"video header" whatever you wish to call it (reference: https://imgur.com/vR6Y8LO ) where I display a video and some information about it. I don't know what the right...
Ezrab_ Ezrab_
8
Why not just use a static function? I don't understand why you would need to use 'bind' or 'singleton' if you could also reference to static functions in your class: Bar::setFoo(); where setFoo is just a static function without the need to bind in t...
tim.kasem tim.kasem
1
Hi, since Laravel 8 the recommended way to create a new Laravel project is to use Docker according to the official doc: https://laravel.com/docs/8.x/installation I'm not very familiar with Docker and was wondering if this new method was solely introd...
AlexSteele AlexSteele
4
I have a few models each have status as 1 or 0, and I would like to implement this on both standard filtering and on searching (two characteristics of the filter). on standard, its working ok: ModelName::where('status', '1')->orderBy('sort')->...
Hi, I am using Laravel sanctum token system. It was working fine for months now. Tonight, i update some apache modules and permission and after this, Laravel Sanctum Token just stops working. When performing login with username/password, the user is...
JavedBaloch JavedBaloch
19
Can someone help to resolve this error in this script. $sessionGrades = $request->all(); foreach ($sessionGrades as $sessionGrade) { $sessionGrade['session_id'] = $request->get('session_id'); } SessionGrade::insert($session...
Mikegk Mikegk
1
Hi guys, what pusher (websocket) alternative would you suggest me to use when it's up to realtime notifications? I would like to install / host that service myself and do not want to use pusher. Are there any good websocket systems for laravel? Thank...
tomasnorre tomasnorre
1
I have a problem with my Laravel filaments Relation in the "backend" interface. The column with my Relation isn't shown. I have a simple model with a GolfCourse and Country. The edit is working and updating the Database as expected, but I c...
Create a New Discussion Button