Arrow functions also called “short closures”. We can always access the parent scope, there’s no need for the use keyword. Here is a simple example…
Leave a CommentYear: 2020
Laravel has in-built increment() and decrement() functions to increase or decrease a value of the column, by 1 or with the given number. Below are…
Leave a CommentLet us see an example of how to calculate the difference between dates using Javascript. First, write an HTML code with Javascript as below: const…
Leave a CommentThis is useful for migrations when you can’t rollback. It can easily be run in artisan mode or you can create a console command. foreach(\DB::select(‘SHOW…
Leave a CommentPHP 7.4 allows for underscores to be used to visually separate numeric values. It looks like this: $unformattedNumber = 123456789.78; $formattedNumber = 123_456_789.78; The underscores…
Leave a Comment