In this tutorial, We will learn how to How to check Email and username availability live using jQuery/ajax and PHP-PDO. File Structure for this tutorials index.php (Main File) config.php (Database Connection file) check_availability.php (Used to check the Email and User availability) 1. Create a database with name demos. In demos database, create a table with name email_availabiltySample structure …
MySql
Keyboard control of Big Sur notification alerts – Rob Allen’s DevNotes
With the release of Big Sur, my scripts for keyboard control of macOS notification alerts stopped working. With a bit of experimentation and help from Google, I have written new ones. Closing an alert To close a notification alert on Big Sur, conceptually we want to press the X button that appears when you hover …
Eloquent: Recursive hasMany Relationship with Unlimited Subcategories
Quite often in e-shops you can see many level of categories and subcategories, sometimes even unlimited. This article will show you how to achieve it elegantly with Laravel Eloquent. We will be building a mini-project to views children shop sub-categories, five level deep, like this: Database Migration Here’s a simple schema of DB table: Schema::create(‘categories’, …
Upload and Parse CSV with Laravel MediaLibrary and SpreadsheetReader
Quick example of a code I had to write recently. Task is simple – upload CSV and parse it. Also save that file and the record, which user uploaded it. Let’s take a look. Here’s the code of the Controller’s method, I will explain it bit by bit below: public function importProcess(UploadImportModelRequest $request) { $originalFile …
Taylor Otwell: Laravel 7 Will Move Auth Controllers into UI Package
I’ve been listening to Laravel Snippet podcast by Taylor Otwell, and heard some news about upcoming Laravel 7, which I think is pretty important for blog readers to know. So, changes are coming to Auth scaffolding. Quoting Taylor, that’s exactly what he said: I’ve been working on scaffolding for Laravel. In Laravel 7, I think …