Posts in category: PHP & MySQL

Laravel Framework | PHP & MySQL | Tutorials

Laravel download files from a route

Laravel makes downloading a server file very easy, in this post I'm going to show a way to downl...

David Carr


Demos | Blog | PHP & MySQL | Tutorials

Creating a blog from scratch with PHP - Part 9 Cover Image

In this part, we will add a cover photo to the blog posts.

David Carr


Microsoft Graph API | Packages | Laravel Framework | PHP & MySQL

Laravel package MsGraph

I've released a new Laravel package called MsGraph that's essentially a wrapper fo...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Essential Laravel Packages

Laravel comes with a lot out the box, however, you'll often add third-party packages to add extr...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel accessing auth in Service Providers

There are times being able to use Auth within service providers is really useful such as showing men...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel import large CSV file

I recently had to import a 30,000 line CSV file, in this post, I document how I tackled this ta...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel send multiple attachments to Mailables

In this post, I show you how to send multiple attachments to a mailable class.

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel Limit Login Attempts

When using Laravel's Login system for authentication it has a default of 5 failed login attempts...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Using Laravel ORM Standalone Paginate

When using Laravel's ORM in a standalone project you'll want to use pagination, my first tho...

David Carr


Demos | Blog | PHP & MySQL | Tutorials

Creating a blog from scratch with PHP - Part 8 Tags Sidebar

In the last tutorial we created the ability for having tags for each post, this part will conti...

David Carr


Demos | Blog | PHP & MySQL | Tutorials

Creating a blog from scratch with PHP - Part 7 Tags

In this part, I will explain how to add the ability to add tags the posts, how to display them and s...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

How Laravel's optional() helper can keep your pages running

If you've ever used Laravel ORM to create a relationship between tables you will have come acros...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel Importing SQL dumps with seeds

Seeding with Laravel is really useful for populating the database for instance a typical u...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel apply a query constraint with global scopes

Imagine your building a multi-tenancy application, in your controller your using a Contacts model ev...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel set default value for creating model instances

Often when creating records with the ORM you'll set the same keys every time, in this cases you...

David Carr


Support my work by donating with PayPal.

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2009 - 2021 DC Blog. All code MIT license. All rights reserved.