File upload using laravel – ajax
File uploads is one of the most important functions on the internet, and we have bigger files nowadays, which means it's not enough to have simple input fields - we…
File uploads is one of the most important functions on the internet, and we have bigger files nowadays, which means it's not enough to have simple input fields - we…
<?php foreach ($msgs as $key => $msg) { $sender_id = $msg->sender_id; $usernameData = DB::table('users')->where('id', $sender_id)->get(); $OrderData = DB::table('service_checkout')->where('user_id', auth()->user()->id)->get(); $usernameDataCount = DB::table('chat_open')->where('reciver_id', auth()->user()->id)->count(); foreach ($usernameData as $key => $usrData)…
Create index.php file at the route directory and you should create an .htaccess file in your root like this: RewriteEngine On RewriteCond %{REQUEST_URI} !^/public/ RewriteRule ^(.*)$ /public/$1 [L,QSA]
Payment gateways are an essential operational component of any ecommerce store. It completes the payment mechanism of any ecommerce store and allows users to make hassle-free online payments. In this…
index.php <head> <title>CRUD Tutorial</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script> </head> <div style="padding:30px" class="container card"> <?php if(isset($_GET['success'])){ ?> <div id="" style="padding:10px; background:green; color:white">…
In this post, i give you example query of how to fetch current month records from table using Laravel query builder. We sometimes require to get records that created on…
Fetch todays data <?php $today = date("d"); $todays_order = DB::table('service_checkout') ->whereDay('created_at', $today) ->count(); ?> Fetch current month data <?php $thismonth = date("m"); $todays_order = DB::table('service_checkout') ->whereMonth('created_at', $thismonth) ->count(); ?> Fetch…