Skip to content

Tag: laravel

laravel, use of updateOrCreate inside forloop

I want to use updateOrCreate in order to prevent duplicate I have stores and need to store for every store its working hour (days, open time, close time, available) Day Available Open Close Monday [checkbox] [input] [input] Tuesday [checkbox] [input] [input] Wednesday [checkbox] [input] [input] but I still ge…

Remove /public after https redirect laravel .htaccess

I have a Laravel Page Deployed in a Shared Hosting and when I force http request to redirect to https the url contains /public My root .htaccess is: And my /public .htaccess is: The only problem here is: when you type the url like example.com it will redirect to https://example.com/public and everything works…

increment value of i is not working properly

I am not able to understand why value of i is not setting to zero and it’s behaving like this st the start of both form value of i is set to zero but not getting the desired out in html form output is showing as result i want should be something like Answer First it should be <?php $i