For many purposes, it requires checking for the specific directory in the Laravel project. You can use the IF-ELSE statement to check and the certain
Category: Laravel
For a purpose where you want to delete posts older than specific days. With Laravel’s eloquent ORM, you can create a function for the task.
If you wanna check whether the number is in decimal or not, just use the is_float() function. PHP is_float() function With PHP function is_float(), you
Remove HTTP://, www and slashes from the URL Below the PHP function removes HTTP, www and slashes. Use preg_replace Credit: Remove PHP HTTP://, www and
Laravel Check, In Controller If The User Has Liked It. How to check using the if-else statement in Laravel controller, if the user has liked
If there is a way to see the version of PHP software I have installed? How to check the PHP version on my computer? Solution
CD.. in command prompt is used to change the directory. In any case, if it does not work you should follow this step. In command
How to allow the owner (creator of the post) to delete the post? Only the owner can delete the posts in laravel. How to check
How to delete all comments posted in a post in Laravel? Want to delete a post and the same action will delete the comments on
What are npm run dev and npm run production? What does it do? NPM RUN DEV will compile all your assets including a source map.