Pregleda (30 dana / ukupno): 17 / 957
Laravel logging mechanism is pretty simple – it writes all the errors to a file at /storage/logs/laravel.log. It’s convenient until the file gets bigger. And then you have a problem to find a bug from yesterday or some days ago. How can you solve this?
We all know that file app/Http/routes.php is used for listing all possible routes we need for our application.
Sometimes there is a need to set a default column value for database field – if it’s not provided when creating the entry. There are two simple ways of doing it.
Lately I’ve been re-reading full Laravel documentation and found quite a lot of “small details” which no one actually noticed in tutorials or books. One of these is using “-” symbol in route parameters. Apparently, you cannot use “-” in parameter, like post-id here.
If you are building any kind of serious Laravel based app you'll probably be using cron jobs, and since version 5.0 Laravel has a great task scheduling tool built right which many of us gladly use instead of tedious "manual" cron jobs.
Laracon is almost upon us. Unfortunately for me, I will not be able to attend. Guess, I'll have to wait for a couple of months to watch it on Youtube. That aside, this year's Laracon will be the stage for unveiling Laravel 5.3.
Time for another new feature in Laravel 5.3! As I was writing my book I noticed a pattern in the global helper functions like session() and, in some ways, cookie(). There are three primary functions that they can perform: get a value, put a value, or return an instance of their backing service.
Want to help? How about a pull request or create an issue with improvements.
Canvas is a new minimal blogging app by Todd Austin built on Laravel. It features writing in markdown with the Summernote WYSIWYG, a media uploader, post tags, and post scheduling.
Updates: "Updates: laravel/framework [master, 5.2, 5.1], laravel/laravel [master, develop], laravel/docs [master, 5.2], laravel/homestead [master], laravel/cashier [6.
Software is eating the world. The internet has become a very wild planet that harbors almost everything. With more and more of our lives being spent online, the list of accounts, social networks, and online shops we protect using passwords has also grown.
From time to time I need to process a csv file. PHP provides a fgetcsvfunction to help with that task. Unfortunately this is a very basic function. It will not, for instance, recognize a header column as such.
In my in-depth guide about iterators I talked about what iterators are exactly and how you can use them. At the end I told you that I’ll also write one for generators. Here it is.
Let's take a look at another new feature that's coming in Laravel 5.3. Laravel's Blade templating language provides something called "directives", which are custom tags—often control structures—that are prefaced with @.
Laravel collections are one of the most powerful provisions of the Laravel framework. They are what PHP arrays should be, but better. Laravel collections are what PHP arrays should be, but better.
Low bug count, good performance, easy modification. Good code is high-impact, and is perhaps the main reason behind the existence of the proverbial 10x developer. And yet, despite it’s importance, it eludes new developers.
Budite prvi koji će ostaviti komentar.