I want to get category with only 2 subcategory not all subcategory. Like below output Category 1 subcategory 1, subcategory 2, Category 2 subcategory 1, subcategory 2, Category 3 …
Tag: laravel
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 6.x new password.confirm middleware doesn’t work with custom guard
a new password.confirm feature has been added to the laravel 6.2 framework. I have a fresh laravel 6.18.8 installation, I have done multi-authentication based on guard. I want to run password.confirm …
Group array php
I have an array as follows and I need group type_id array:11 [▼ 0 => { +”product_id”: 521 +”product_name”: “Name product 1″ +”type_id”: 1 } 1 => { +”product_id”: 521 +”…
add rows and columns base on condition in laravel blade
I’m trying to create UI for cinema seats in laravel blade. i have seat_rows and seat_coulmns in my database and seat_rows will be the same for 2 rows. i mean first row is like this: id:1 seat_row:1 …
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::…
Login attempt modification with one another column
I want two users to use same mobile number and password, but they may have different role_id, which is a column (i added in users table), this role_id may have different value according to role of a …
Docker image pushing but my volume not persist
This message to clear up a problem I am having with the use of docker with my php application. Indeed, I execute locally my dockers images (nginx, phpmyadmin and php with my application) and …
Error 404 on a view that exists on routes. The URL exists as well as the view but it keeps returning error 404
I am getting an error 404 from a view that actually exists in my routes. This is the view where I select the data from (sidebar.blade.php) <div class="col-xl-3 col-lg-3 col-sm-12 col-xs-12 sidebar-…
Laravel – Avoiding double-booking time slots
I am trying to figure out how I would add some form of validation so that the same theatre slot cannot be booked twice on the same date. Any advice is much appreciated. The code below is how to crete …