{ All snippets }

Tweetsnippet is a curated list of tips and tricks from Twitter.

The Laravel Dev

The Laravel Dev @TheLaravelDev

While adding a New Column to existing table using Migration, the column is always added at the last. ✅You can use the after() to place the New Column after a specific column. ✅You can also use the first() to place the New Column at the start of the table. #Laravel https://t.co/hNaiFuYZi5

Povilas Korop

Povilas Korop @PovilasKorop

Quick Laravel tip: if you want to have a custom validation rule but it's a short one-liner, you may specify it directly in the $rules array, as a callback function. https://t.co/su7vUvZTM4