Skip to content
Scratch Coding
  • WordPress
  • Laravel
  • PHP
  • Vue.js
  • JavaScript
  • Quick Links
    • Contact Us
    • Privacy Policy
    • About Us

PHP

How to check the request type in Laravel and how to retrieve the requested path

December 14, 2022December 12, 2022 by Hadaya Qaiser
How to check the request type in Laravel

How to check the request type in Laravel. Also, how to retrieve the request method

Categories Laravel, PHP Leave a comment

How to check existence of a table in Laravel database?

January 12, 2023December 12, 2022 by Hadaya Qaiser
check existence of a table

Method, syntax and implementation for how to check existence of a table in Laravel database. Code snippets are added for proper explanation.

Categories Laravel, PHP Leave a comment

How to efficiently read and parse a big CSV file with few lines of code PHP

December 26, 2022November 16, 2022 by Hadaya Qaiser
How to efficiently read and parse a big CSV file with few lines of code PHP

Obviously, because of the logic that the project required, we couldn’t just simply import the file into the database through a tool like PHPMyAdmin, as every row in the CSV should be modificated to fit with our new database design.

Categories PHP Leave a comment

How to Convert time to time ago in PHP e.g 30 mintues ago, 1 day ago, 2 days ago

October 26, 2022 by Sumaira Nasir

Converting date time to a string like 30 minutes ago, or 1 day ago using PHP.

Categories PHP Leave a comment

How to display time elapsed string (X days left) in Laravel – 2 hours ago

January 12, 2023September 12, 2022 by Sumaira Nasir
time elapsed string

In this tutorials of Laravel, we will show you how to process time and display it in more user friendly format with code examples. e.g 2 days left format in Laravel

Categories Laravel, PHP Leave a comment

Recent Posts

  • How to save database details using Laravel Route as API in Ionic
  • How to connect two Laravel 8 applications sharing same database
  • How to clear cache in laravel 8 via routes, controllers and commands?
  • How to fix ‘Trying to get property ‘name’ of non-object navigation.blade.php’
  • How to fix Laravel 8 Breeze CSS not loading with Vite
  • Ionic Framework
  • JavaScript
  • Laravel
  • MySql
  • PHP
  • Vue.js
  • Wordpress
© 2023 Scratch Coding • All Rights Reserved.