Laravel Important points

* \Carbon\Carbon::now() // insert current date * Auth::user()->id // current user id * if ($request->hasFile(‘bussiness_pan_image’)) * insertGetId // last id of $id = DB::table(‘posts’)->insertGetId( array(‘title’ => ‘my post title’, ‘body’ => ‘my post body’) ); dd($id); * ‘confirm_password’ => ‘required|same:password’, //for confirm password * ‘password’ => ‘sometimes|nullable|min:6’, // optional but...Read more …

What’s New in Laravel 5.7

New Pagination Link Customizations Guest User Gates Artisan Commands in Laravel 5.7 Improved Error Messages for Dynamic Calls Dump Server to Ship With Laravel 5.7 Callable Action URLs Resources Directory ChangesRead more …

Autoloading classes

PHP 5 introduced the magic function __autoload() which is automatically called when your code references a class or interface that hasn’t been loaded yet. This provides the runtime one last chance to load the definition before PHP fails with an error. Here’s an example of an extremely basic __autoload() implementation: I have a one...Read more …