Connect with us

Laravel 9 Release Date and New Features

kizinho

Published

on

Follow
DEVELOPER PROGRAMMING: Laravel 9 Release Date and New Features [New  Developer Programming] » Naijacrawl
Photo: Naijacrawl
site

Laravel community has updated about the new release of another version of Laravel called laravel 9. With laravel 9 it brings new features that you will love and it will be released earlier next year in 2022 due to some dependencies of Symphony they depend on which will be available by November 2021 and Laravel normally gives 2 months after symphony updates to release a new version of laravel.

Let's look at the new features

Laravel introduced a new query builder which helps you easily get more data from the Model without writing a lot of codes

return Model::query()
 	->whereNotExists(function($query) {
 		// $query is a Query\Builder
 	})
 	->whereHas('relation', function($query) {
 		// $query is an Eloquent\Builder
 	})
 	->with('relation', function($query) {
 	// $query is an Eloquent\Relation
	});


Other new features of Laravel 9 are Anonymous Stub Migrations

These new features will be default features coming to Laravel


use Illuminate\Database\Migrations\Migration;
 use Illuminate\Database\Schema\Blueprint;
 use Illuminate\Support\Facades\Schema;
 return new class extends Migration {
 
     /**
      * Run the migrations.
     *
     * @return void
     */public function up(){
        Schema::table('people', function (Blueprint $table) {
            $table->string('first_name')->nullable();
       });
    }
};

Click Here To Comment


site


kizinho

Adike Kizito is a top-rated software developer, blogger, sports, and entertainment lover. He is the CEO of these popular websites Naijacrawl.com and Mp3ager.com. He operates his software developing task through Kizzsoft.com,... Read More

Continue Reading
1 Comment

1 Comment

  1.   David Enabs

    Hmm..!
    This will be cool


Leave a Reply

Your email address will not be published. Required fields are marked *

Mastering laravel Routes

kizinho

Published

on

DEVELOPER PROGRAMMING: Mastering laravel Routes [New  Developer Programming] » Naijacrawl
Photo: Naijacrawl
Hi, folks, we have successfully mastered MVC in the last class, if you missed it go back here.We have talked about routes and where they can be found in the project, will do a quick freshened up in routes.Laravel routes simply accept a URI and a Closure, providing a very simple and expressive method of defining routes:Before we start using a route, take note of the following :Available Router Methodsget - you use get when you want to get resources from the databasep...
Continue Reading

How to Customize Laravel Validator Error with Reusable Functions

kizinho

Published

on

DEVELOPER PROGRAMMING: How to Customize Laravel Validator Error with Reusable Functions [New  Developer Programming] » Naijacrawl
Photo: Naijacrawl
Laravel is a powerful PHP framework that helps you to build a web application quickly. Laravel is very easy to use and maintain the codebase, I will advise using the latest version of laravel when building a new project.Read Also : How to solve This page isn’t working HTTP ERROR 500 in LaravelToday I will show how you can customize the laravel validator error and reused it when validating your requests and return a nice error message to the user.Example functionsuse...
Continue Reading

How to Upgrade Laravel Application from Version 5 to latest Version 8

kizinho

Published

on

DEVELOPER PROGRAMMING: How to Upgrade Laravel Application from Version 5 to latest Version 8 [New  Developer Programming] » Naijacrawl
Photo: Naijacrawl
Hi, Folks, have you feels like Laravel continuous released of new versions has let you down and you can't cope with it any longer, don't worry this article is a quick guide for you, that has I upgrade naijacrawl from 5.8 to the latest 8 versions.All you need to know before upgrading your old laravel.External packages might fail to install, so isolate your packages firstInstall fresh laravel applicationThank me later.First, all you will do to be successful when upgra...
Continue Reading

Latest


Download Naijacrawl App today

Fastest way to read on the go

Download the Naijacrawl App.