Migration index too long? Choose the name yourself!
Migrations are a great way of building database schema, but sometimes it’s harder to deal with more than just columns. One of more interesting things are indexes. In particular, I had a problem of...
View ArticleLaravel Schema Designer – prepare your database visually
Laravel has a great mechanism of migrations, but what if you want to visualize your DB schema to see all in one place – to discuss with colleagues, for example. There is a great tool for that – here’s...
View ArticleAuth: login with username instead of email
Laravel comes with out-of-the-box authorization mechanism which is incredibly easy to use. But it depends on several pre-defined things, one of the main ones – DB table users structure and login with...
View ArticleLaravel and shared-hosting: working with FTP and phpMyAdmin
With Laravel, we get used to command line commands like composer install or artisan migrate. But what if we have only shared-hosting from client, with only FTP access and phpMyAdmin to manage database?...
View ArticleMigrate “pretend”– view actual SQL queries before you run them
Laravel has convenient database migrations mechanism, which allows us to track database changes and easily roll them back if needed. But what is hiding behind the scenes? What if we need to know actual...
View ArticleResource Controller Delete: link instead of a button?
Laravel has Resource Controllers which allow us to quickly set up create/read/update/delete operations. But the trickiest one is probably DELETE one – we have to create a separate form for it. With...
View ArticleCaffeine Package – prevent forms from timing out
If you have a longer form in your project, it takes time to fill it in. And if it’s hidden under user session, it will time out – by default, in 120 minutes. Seems like enough time, but what if a user...
View ArticleA “hidden” way to drop foreign keys in migrations
If we add a foreign key column in our migration file in function up(), we need to make sure that foreign key would be dropped in down() function, right? The thing is that you need to remember longer...
View ArticleHolywar: when to use Laravel vs WordPress?
In PHP world there are two big groups of developers – those who work with Content Management Systems (WordPress, Drupal etc.) and those with frameworks (Laravel, Symfony etc.). And rarely people work...
View ArticleLaravel Hackathon Starter – boilerplate package for quick start
Today I want to show you a useful package I’ve found – it’s called Laravel Hackathon Starter and created by Prosper Otemuyiwa. It gives you a perfect start for quick project you need. Actually, Laravel...
View ArticleThree new features in Laravel 5.2.22
Two days ago Taylor Otwell released a new minor version of Laravel framework – 5.2.22. Along with some small fixes, there are a few new functions, let’s look into them. A lot of people think that...
View ArticleDon’t forget to use Carbon constants
When working with dates and times, we use awesome Carbon class, right? And there’s a lot of small things in it which we might not even know. I will give you one example today. True story: I had to...
View ArticleNEW: abort_if() and abort_unless() – two small helpers
Another quick tip out of Laravel world – two new helper functions in the newest 5.2.22 version of the framework. They deal with abort() statement but make it a little prettier. Here’s how. The usual...
View Articlestr_plural(): Quickest way to show plural noun
Laravel has a lot of helpers, for example to work with strings or arrays. One of them in particular helps with pluralization. Here’s what I mean. Imagine a situation where you have to show text “X...
View ArticleReview: Top 5 Laravel-based CMSs
When talking about Frameworks vs CMSs, we usually compare one to another. But in fact there are quite a lot of CMSs that are built on top of frameworks! Laravel isn’t an exception and there are a few...
View ArticleWebDevBusiness – my new blog and podcast about the Business of web-development
This time I want to present you something non-technical. While writing to Laravel Daily, I thought that I have quite a lot to say about business part of web-development, not only Laravel technical...
View ArticleMigration – down: check if table has column
One of the problem with database migrations in Laravel is developers rarely actually test “down” migrations – even when testing we usually re-generate the whole schema from scratch instead of launching...
View ArticleValidation rule “sometimes”: apply rules only if field exists
Recently I’ve found out an interesting validation rule for form fields in Laravel, and I want to briefly tell you about it. Imagine that you have two forms – one with username/password fields and...
View ArticleMailTrap – send testing email without actually sending it
After all those recent Mandrill news the whole web-dev community was shaken up and started looking for alternatives for transactional emails. And actually, there is a whole another way of thinking...
View ArticleMy new video show “Laravel Business”! Episode 01: Why Laravel?
I decided to start a new side project in form of a YouTube channel where I speak about business side of Laravel. As I’m transitioning from being a developer to being an owner of a small team/agency,...
View Article