My and my group are trying to create a simple PHP code editor that also executes the code without the use of a library. We know the risks that come with eval(), but since it’s all running on a local server it shouldn’t be a problem. The Regex part is definitely the problem since we have no clue ho…
Laravel Validation- depends on the value of another input field
I have 2 fields status and releaseYear and productionYear. I have to put the validation that : $request-> ‘productionYear’ => ‘nullable|digits:4’, ‘releaseYear’ => ‘required|…
How to use “If else” condition with date in blade template
Hi guys so I have post and comment system, So I want to show comment section if the day of the post +7 days. if they see the post on day 8 of the post created they can’t comment. Here is my code that I try but I still dont get it : I know it’s totally a dumb code,
Spatie/Newsletter: MailChimp Invalid MailChimp API key “ supplied in Laravel 5.6
Good morning all of you, I’m currently working on using spatie/newsletter in my laravel 5.6 Blog to work with MailChimp to create a newsletter where users can subscribe. When I try to subscribe, I get this response: My Controller Env File newsletter.php (after running php artisan vendor:publish -provide…
Disable or make read only the fields from edit account pages in Woocommerce
Currently the Edit Account Details page have these fields: First Name, Last Name, Email address, Current Password & New Password. Now I need to disable the First Name, Last Name, Email address …
Reordering multiple fees differently in Woocommerce cart and checkout pages
When adding multiple fees to the checkout in woocommerce, is it possible to prioritise the order of them? Currently it looks like woocommerce orders them by the fee value, so for example: Fee 1 = £10….
Using $this when not in object context in PHP
I don’t know why i’m getting this error: Fatal error: Uncaught Error: Using $this when not in object context in C:xampphtdocsappindex.php:19 Stack trace: #0 {main} This is my index.php and where …
Trying to get property of non-object (View: C:xampphtdocsenginepoker2resourcesviewspagesplayer_edit.blade.php)
I’m beginner in laravel, when I put stats table in blade I got this warning Trying to get property of non-object (View: C:xampphtdocsenginepoker2resourcesviewspagesplayer_edit.blade.php) …
Limit Comment in Post Laravel
So this is the problem, I have application with post and comment. But I want to limit the comment per user, So if there is 1 post only 1 comment per user. Is it possible ? Here is my store function in CommentController: What query can I add in this store function to limit the user to only comment once
Substract an amount of time to an addition of times
I have to substract 32:30:00 (string) to 95:05:00 (string) in php : THey are coming from an addition of time . I can’t find any code working, cause strtotime doesnt accept more than 24 as a value . Please help me, thank you. For example, i ve tried this : It returns 0 It should return something like 62:…