A Visual Guide to Directory Structures Where do you put your files? How does Laravel know? These are a few questions that I normally get from individuals just starting out with Laravel, or really any other framework. Laravel creates a folder structure for you and it expects certain files to appear in specific places. If they’re not there, Laravel will not know what to do. It expects your controllers to be in the Http folder, it expects your models to be in the Models folder, etc. If you’re not familiar with those concepts yet, don’t worry, we’ll cover each of them
Category: Web Development
Get Ready to Docker Closing down the PHP project today felt a little sad. It’s a series that I’ve been working on for quite some time now and finally felt like I’ve exhausted the subject. I’ll probably continue with some more advanced topics since I don’t want it to end. As I write that, I feel a little better about it now. Let’s continue with my absolute favorite framework, Laravel. We briefly looked at the installation process in the previous article, and to be honest, it’s about as simple as it gets. There are a few different ways to install
Empower Your Web Development Journey Laravel is a PHP framework that gives you the tools you need to create sophisticated web applications, but it also allows you to focus on the application logic. It’s built with modern language features and supports multiple databases out of the box. What is Laravel? Laravel is a PHP framework built on the principle of convention over configuration. It’s a fully open-source, community-driven project that focuses on simplicity and elegance in building web applications. Laravel was created by Taylor Otwell in 2010 and has become one of the most popular PHP frameworks today. Laravel is built on top of the Symfony component
Integrating DataTables the Vue Way Last time we looked at setting up DataTables using the DataTables CDN. If you read the DataTables Vue documentation, that’s not what it states. To be as comprehensive as I possibly can be on this topic, I’ve decided to show this approach as well. To read the CDN approach, check out the article below. https://medium.com/geekculture/laravel-9-x-with-vue-js-and-datatables-b1299d0e6f09 For this article, I figured it would be good to start from scratch. No assumptions made. Let’s install it with a fresh installation of Laravel 10.x. We’ll go through setting up Vue.js and then setting up DataTables with Server Side
Customizing DataTables in Vue/Laravel A request came in that’s not completely out of the norm, but something that stumped me for a few hours. It wasn’t anything revolutionary. It was something that I’ve done before with a different type of implementation, but never like this. The request was, “can we add a dropdown list so that when we select an option, it would only load those items into the DataTables table. We want all of the items to load first and then if we need to narrow it down further, we’d like to have that capability.” Implementing this using Vue/jQuery
Understanding Programmer Sentiments Toward Web Dev There are two types of people in the programming sector: those that love learning and those that don’t. The majority of developers are lifelong learners, but there is a percentage that do not want to keep learning new concepts. At millions of developers, even a small percentage can appear quite large. But this isn’t the full story. First, Some Background. There are numerous different paths that you can follow in order to be a web-developer. The three main categories are: front-end, back-end, and full-stack. Front-end developers focus on the, you guessed it, front-end. Their
Mastering Email Testing and Sending in PHP Testing and sending emails are very important aspects of email deliverability. There are various standards and authentication such as SMTP and MIME, Base64 and DKIM that must be followed if you are using PHP based online-services to test and send emails. There has been a rise in the number of alternative methods that we may use to test and send emails with PHP throughout the years, which will be discussed in this post. Let’s get started! Table of Contents Testing Emails in PHP Email Testing Checklist Various methods for testing emails in PHP Sending
Rapid Deployment to DigitalOcean Although you can deploy a Laravel application hundreds of different ways, I wanted to share a quick way to deploy a Laravel app in DigitalOcean to get you started. Assumptions You have a Laravel application that you’re trying to deploy. You have a Digital Ocean account. If you don’t, it’s really simple to sign up. Your Laravel Application is on GitHub or Bitbucket. Droplet Log into your Digital Ocean account and click on the Create -> Droplets button. You will be brought to a screen that looks like the one below. The default Distributions tab will be selected, but we don’t want to spend that much time on optimizing our
Configuring GoDaddy with DigitalOcean In another article, I write about how to deploy a Laravel Application to DigitalOcean. Now, we have to point the domain to the Droplet so that people don’t have to type in an IP address. https://blog.devgenius.io/quick-way-to-deploy-a-laravel-app-to-digitalocean-d212f088bcc5 DigitalOcean Once you log into your DigitalOcean account, click on the Networking tab in the left sidebar. In the image below, it’s the third link from the bottom. You’ll be brought to the networking screen with the Load Balancers tab selected. You’ll want to click on the Domains tab to move to the Domains section. Enter your domain name. In my instance, I’ll enter skinlabbyingarn.com. Click on the Add
