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…
Tag: laravel
Laravel: problem with password not updated with hash password in database
When I register a new user sign up, it save the password to database with hashed password. But when I go edit the user from the admin dashboard, the edit function work perfectly, but the password did not store or save as a hashed password, it save as plain text. This is link to image show in database modifica…
How to generate a sitemap.xml using laravel-sitemap without images url?
I am using spatie to generate sitemap.xml. It is working properly as it is expected. But as per some requirement I would like to not include any image url in sitemap.xml. This is my code – Currently my sitemap.xml something looks like this with image links – This there any way to remove those imag…
How to format time data type in laravel
How can I format time data type in laravel? Please see my code below. Model protected $dates = [‘start_date’, ‘end_date’, ‘show_at’, ‘hide_at’, ‘created_at’, ‘updated_at’]; View {{ $promotion->…
export excel with a query using maatwebsite with laravel [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question Hello i’m really new using maatwebsite already read the documentation but cant find it,…
LARAVEL 7, Undefined variable, cant pass Variable from Controller to View
im new at Laravel, and im making a CRUD following this tutorial: https://appdividend.com/2020/03/13/laravel-7-crud-example-laravel-7-tutorial-step-by-step/ first i made it on my own, and then i just copied the code from GitHub, in both cases im getting in the variable inside the @foreach: FacadeIgnitionExcept…
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…
Returning Optional Values based on Database Value
I’m trying to return a SVG based on the value 1,2 or 3 from my database column called foo_options. IF 1 return Green SVG IF 2 return Orange SVG IF 3 return Red SVG foo_options has the value of 3 in …
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
Pass data to javascript but got so many backslash
I’m passing data from my controller to javascript. public function index() { $events = Eventcalendar::get()->pluck(‘event’); return view(‘eventcalendar.index’,compact(‘events’))…