thkafadaris1 thkafadaris1
0
Hello, In my application, I have users that belong to accounts. After successful registration/login I want to perform a check if user has created an account. If not I want to redirect him to account page to create the account without having access to...
msaad msaad
5
Hello Friends, I want to ask about the quantity of an item in the gloveman's shopping cart laravel 8. In Ajax Form's Data, the item quantity is 1. But when we add that item to the cart then its qty become null. $item_id = $request->post("item...
elliotk elliotk
3
Hello, I have a View Composer, which I wrongly thought would reduce query duplication (eg n+1) I have the same $basket that I want available in 2 different views. I expected that this query would run just the once, but it runs twice. If I add a 3rd v...
Bcrypt Bcrypt
1
Context: * PostFactory * PostsTest * Models/Post How can we use a ModelEvent when using factories? if there's a column that we want to update in an Event and there's a relationship depending on the Model for example owner_id in Post model which is u...
aneeshjohn7 aneeshjohn7
1
I have upgraded my laravel project from version 5.2 to 8 (Step by step upgrade). This is a custom shopping cart. The cart session data is getting cleared sometimes during the checkout process. We couldn't clearly debug the situation as it is not happ...
aavinseth aavinseth
9
After updating laravel from 7.x to 8.0.4, I am having MethodNotAllowedHttpException on index page. Even if I comment all the routes except default one in web.php file, still I having this error. Exact error is Symfony\Component\HttpKernel\Exception\M...
KikoLdasd KikoLdasd
1
How can I increment this value with ajax without receiving page refresh? Now I have <div class="col-4"><a href="increments/{{ $product->id }}" class="link"></a> public function increment($id) {...
filipecrosk filipecrosk
1
Hi, Does anyone have any tips on how I could make the preflight/options request faster when receiving a CORS request? As you can see below, sometimes that initial request takes way too long and it's impacting my frontend. In this case, the preflight/...
filipecrosk filipecrosk
3
Is it possible to add a cache-control header to a cors request? I tried it but it only adds it to GET requests: // app/Providers/RouteServiceProvider.php ... protected function mapApiRoutes() { Route::prefix('api') ->middle...
iamamirsalehi iamamirsalehi
0
Hi there, I have the code below: public function enable2fa(EnableRequest $request) { $validated_data = $request->validated(); $user = auth()->user(); $google2fa = (new \PragmaRX\Google2FAQRCode\Google2FA());...
NicolasDiscuss NicolasDiscuss
1
Here's how I create the user and encrypt the passwords $user = User::create([ 'first_name' => $request->user['first_name'], 'last_name' => $request->user['last_name'], 'email' => $request->user['e...
Deekshith Deekshith
6
Hi, i have created some shorcodes like below, [Figures 10] [Figures 11] Here 10 and 11 are figure id's and every figure id has some html data. Now i want to replace [Figures 10] and [Figures 11] with the respective HTML data. Example: <p>Some...
TerrePorter TerrePorter
14
Hey all, just got done restoring my website. Somehow a file was uploaded to the public directory. i only have two functions that require date from the user. I havent figured out how they got the file on the server. Would any of you have any ideas?...
hello, Can we use the markdown mail template in Notifications as a view? I am trying same and getting below error, message: "No hint path defined for [mail]. (View: /Project/resources/views/emails/paymentpaid.blade.php)" Here is Notificat...
qiulang qiulang
0
My team is researching whether we should use laravel cache or symfony cache. The feature we are looking for is cache stampede prevention (for redis). The symfony document mentions "The Cache Contracts also comes with built in Stampede prevention...
ssquare ssquare
3
My controller: $customers = Customer::paginate(); return new CustomerResource($customers); My CustomerResource: public function toArray($request) { return parent::toArray($request); } According to docs, it has m...
Sinres Sinres
1
Hello Guy's! I trying to create a custom welcome user notification after verified email address. And when user click verify button from email I run event verified and send nother one mail with welcome notification and button for set default password...
msaad msaad
3
How Can we apply condition on the Gloudemans\Shoppingcart as we can apply in \Darryldecode\Cart https://github.com/darryldecode/laravelshoppingcart#conditions Plz, Help me. Thanks...
xuuto xuuto
2
hi, iam working a project that i want to build a movie website, i have a movie model, which stores movie name, movie url , movie etc. but when iam showing that specific movie in to the end user , i want to also show the casts of this movie from exter...
Reprogammer Reprogammer
1
I want to select rows that have been created for the past 5 minutes, although, I am not quite sure how to approach this. This is how it looks like in MySQL SELECT * FROM (SELECT * FROM transactions WHERE TIMEDIFF(timeIn, timeOut)>='-00:00:01'...
Marcolino922 Marcolino922
7
Hello, in a list of comments there are forms for replying to comments as well as the form for writing a comment. Unfortunately, the validation of a form automatically sends the request to all the other forms making errors appear on all the forms. I w...
petermanoukian2 petermanoukian2
2
Good day, I am producing a form in the datatable from the controller: This is the code: <form method = 'POST' action = "/customer/cart/update1/$id/" name = "form$id"> <input type = 'text' name = 'quan' value = \"...
mohafiz mohafiz
3
Hey, I am integrating 2checkout payment gateway with my mobile application through their API, how can I accept card data safely, do I need to be PCI compliant, and if I do, what is required to become a one? thank you....
sakurikii sakurikii
2
I know you can get route prefix of current route like this request()->route()->getPrefix() but what if I want to get the prefix of a route with name tags.show, some thing like(not worked obviously) route('tags.show')->getPrefix() The part...
finchy70 finchy70
5
How do I change the email sent for password reset by Laravel Breeze?...
warpig replied
Solved
ottaviane ottaviane
3
Hi all, I have this code in my controller that loads a list of records from the tab 'Allegati' and insert in any record a customized value 'op' public function getAllegati(Request $req){ $id=$req->id; //preleviamo gli allegati...
madprabh madprabh
5
Hey Folks, I am building a feature which allos the users to upload files through Trix editor. So people could paste snapshots as well as drag and drop files into the editor. I then process this and upload it on S3 bucket. Can someone let me know how...
shimana shimana
1
I have this tables: users permissions roles role_user permission_user permission_role Giving permissions to roles on my system works well. I Want When set a role for a user,Automatically apply permissions to that user.but it gives the error Undefin...
davy_yg davy_yg
10
web.php // Login Route::get('/login', '[email protected]'); Route::post('/dologin','[email protected]'); header.blade.php <li><a href="{{ url('service') }}">SERVICE</a></li> When I clicked service I get...
sandaur sandaur
7
Hello again, i have two dates, date_from and date_to, they both are optional but if they are present at the same time date_from has to be a date before date_to. I could apply after:date_from to the date_to field but that would be checked even if date...
Jakub003 Jakub003
1
I am trying to follow the guide on the laravel cookbook series for props. I am trying to pass the value of 1 to the component to set the color. <x-button.kanban-tag name="{{$tag->title}}" color_id="1"/> @props([ 'nam...
mecjos mecjos
5
Hi. I want some of my app users to sign in for some pages without sign up. To do this I want to use a specifica link in email for user. Is there a way to do that with laravel passport ? Thank you....
mecjos mecjos
1
I wonder what are the main logic behind api resources except adding meta data to response.. And what are the differences between api resource collections and http json responses. I get same response when I get http json response by returning return...
warpig warpig
1
I want to access my roles() method because I need to fetch only users with roles, how do I do that? User.php public function roles() { return $this->belongsToMany(Role::class); } @foreach ($users as $roleUser) <p>{{ $...
Create a New Discussion Button