I’m trying to replace users phone numbers to start with 1 instead of 0 but I’m stuck. I have this line $mobileNumber = implode(‘,’, $postData[‘phone’]); which outputs “0445329500,0569075729,…
Tag: laravel-5
Put data in the method (addItem) using foreach
Code i tried but it display 1 value. I want to use addItem to insert more data and display it on my invoice pdf. I can grab all my data using eloquent but dont know how to insert into the class given. …
Cannot pass full array from controller in laravel to a view using redirect()
I am unable to solve passing of array issue below is my function in controller public function fetchData($id) { $id=base64_decode(urldecode($id)); prod_detail=ProductDetail::select(‘prod_id’,’…
Laravel count Support Tickets from a user [closed]
I have this in the Dashboard Screenshot of the Dashboard I want that it shows how many Tickets are open / closed / all How do I do this with this Database?Screenshot from SELECT * FROM tickets How …
Laravel filter array based on element value
I have the following array that I need to filter it and get just the elements which have type = 1 array:5 [ 0 => array:3 [ “id” => 1 “name” => “Agua Corriente” “type” => 1 …
Laravel 7.0 project run Without PHP artisan serve
I have issue in this., I change server.php in root folder to index.php and .htaccess file in public folder move to root folder But even though i am getting This page isn’t working HTTP ERROR 500
Laravel protecting routes with verified middleware not working
I’ve implemented Laravel-5.8 email verification following this tutorial: https://laravel.com/docs/5.8/verification. I’m trying to protect few routes from email unverified users as like below: Route::…
How to redirect to the page which shows only the data inserted to the database from that id
For example if there is a form which creates customers, and when you filled the form and submit the page should redirect and show the data which was inserted to that form by a specific individual id. …
how to use success message in view function along with withDeatils?
my return tag containing withhDetails and success message.. while return is perform the success msg is not printing and my code is below controller: public function listing($id) { $data=…
jwt-auth after upgrade – get user from request token
I upgraded: “tymon/jwt-auth”: “0.5.*”, from a very old version, and it seems like the API has changed. I managed to fix the login, using: public function login(Request $request) { $…