magnASCII.io Simone Magnaschi
Senior Full Stack Web Dev
Bookmarks tagged with #laravel.
Show all

Route Binding in Laravel - Ahmed Ash

In your Laravel projects, how do you go about setting up routes for a particular resource? Do you do it in the following manner? Then, do you implement it like this in your ArticlesController?
Tags: #php #laravel
Saved on: 2023-08-08

Using Laravel's Policies and Route Model Binding without Eloquent

I made an assumption. I, for no reason at all, always assumed Laravel's Policy authorization and Route Model Binding functionality were only meant to be used with Eloquent models. Of course they work with Eloquent, but turns they work with any class.
Tags: #laravel
Saved on: 2023-06-18

Exploring Laravel’s Job Queue: Advanced Features for Efficient and Scalable

As web applications become increasingly complex and data-intensive, it’s becoming more and more important to offload time-consuming tasks to background processes. One popular way of doing this in Laravel is through the use of the job queue.
Tags: #laravel
Saved on: 2023-04-03

What are the steps to containerize a Laravel 10 application with PHP 8.2 an

Docker is a powerful tool for developers that allows them to create containerized applications. Containerization can help to simplify development and deployment processes, as well as make it easier to run applications consistently across multiple environments.
Tags: #laravel
Saved on: 2023-02-28

Steve vs Matt — How two developers approach the same problem | Laravel News

It's very common to see two programmers who code the same feature differently. But it's much less common for those two programmers to see eye-to-eye and remain friendly.
Saved on: 2022-12-21

Effective Eloquent | Laravel News

Get ready to level up your Laravel skills with this tutorial on eloquent queries! You'll learn everything you need to know, from beginner to advanced techniques. To begin with, let's take a step back and think about what Eloquent is.
Tags: #php #laravel
Saved on: 2022-12-21

Learn how to upload files in Laravel like a Pro

One of the things that I see many people struggling with is file uploads.
Tags: #laravel
Saved on: 2022-10-21

Laravel’s safety mechanisms

Laravel is a mature PHP web application framework with built-in support for almost everything modern applications need.
Tags: #laravel
Saved on: 2022-10-20

Optimizing circular relationships in Laravel - Jonathan Reinink

In my last article, I explained the importance of pushing database query optimizations to the perimeter of your Laravel applications. As noted then, by doing this, you'll keep your models simpler, since they no longer need to be concerned with performance issues.
Tags: #laravel
Saved on: 2022-08-16

Strategies for decreasing the number of queries in a Laravel app - Freek Va

Oh Dear is all-in-one solution to monitor your site that my buddy Mattias Geniar and I have created. It can monitoring uptime, certificates, broken links, scheduled jobs, and much more. Under the hood, Oh Dear is a large Laravel application that performs many queries all of the time.
Saved on: 2022-08-16

Running PHPStan on max with Laravel | Laravel News

Over the last few years static analysis in PHP, and more specifically Laravel, has become more and more popular. With more people adopting it into their Software Delivery Lifecycle, I thought it would be a good time to write a tutorial on how you can add this to your Laravel project.
Saved on: 2022-06-21

Eloquent Relations: how to order topics by newest posts? - Laravel Daily

Quite a typical scenario, but not easy to find the answer. You can easily order Eloquent results by some column, but what if you want to order by related column in child table? Most common example is a forum like Laracasts which shows topics in order by the latest post in that topic.
Tags: #tips #laravel
Saved on: 2022-06-06

Top Laracon Conference Presentations

Laracon is an ongoing series of conferences and events about the Laravel software development framework. We use Laravel pretty heavily at Icehouse Ventures because it powers our Investor Portal. I’ve learned a lot over the years from the various Laracon conference recordings.
Saved on: 2022-03-18

How to Deploy Laravel Projects to Live Server: The Ultimate Guide - Laravel

There are a lot of courses and articles about coding but much less about putting it in production. With a lot of questions asked, I decided to write this ultimate (hopefully) guide to deploy Laravel projects. Notice 1: please take this article as personal advice but not 100% accurate process.
Tags: #tips #laravel
Saved on: 2021-12-20

The Laravel Artisan Cheatsheet

The Laravel Artisan Cheatsheet Search 👆
Tags: #laravel
Saved on: 2021-11-13

How Livewire works (a deep dive) | Caleb Porzio

The experience of using Livewire seems magical. It’s as if your front-end HTML can call your PHP code and everything just works. For this writeup, we’re going to use the example of a simple counter component. Here’s what the Livewire component looks like:
Saved on: 2021-10-13

Initializer for Laravel

A quickstart generator for Laravel projects.
Saved on: 2021-10-10

Custom Route Files | Laravel News

One morning I woke up to Slack notifications. That's never a good sign. Overnight, my Redis instance had filled completely up. We use Redis for two things:
Tags: #laravel
Saved on: 2021-10-08

Validating an upload as an image OR a video with Laravel - DEV Community

Laravel's Validator makes it simple to validate a request's file field as an image using the 'image' rule, and you can hack together rules for validating a video by restricting MIME types.
Tags: #laravel
Saved on: 2021-09-20

Homepage | Skipper

Saved on: 2021-09-14

LaravelDaily/laravel-tips: Awesome tips for Laravel

It's horrible to see what is happening now in Ukraine, as Russian army is bombarding houses, hospitals and kindergartens. Please check out supportukrainenow.org for the ways how you can help people there. Spread the word.
Tags: #laravel
Saved on: 2021-08-18

Laravel vs. Symfony: A Side by Side Comparison

When facing the start of a brand new PHP application, there is one decision that can’t be overlooked: which framework should you use? And when it comes to PHP frameworks, the "fight" is often Laravel vs. Symfony.
Saved on: 2021-07-30

[Common mistake] Sharing session across multiple Laravel subdomain - DEV Co

To Share session across domain and it's multiple especially when you have large ecosystem were multiple applications communicate with one database So when a user authenticates any of these apps, they will be logged in everywhere. For example, when a user AUTH into http://mywebsite.
Tags: #php #laravel
Saved on: 2021-06-17

Pushing the boundaries of Eloquent

Part 1: Dynamic Page Size. Part 2: User Defined Sorting.
Tags: #laravel
Saved on: 2021-06-05

Find N 1 problems instantly by disabling lazy loading | Laravel News

Strict about preventing N+1 query problems? @themsaid's recent contribution to the framework allows you to disable lazy loading entirely (exception will be thrown)... Can disable it only on non-production so production doesn't crash if one slips through! 💅
Saved on: 2021-05-22

Keep controllers clean by using form requests in Laravel - Freek Van der He

Most people use form requests solely for validation, but they can also help to keep your controllers clean. Here's how we use them in Mailcoach Stay up to date with all things Laravel, PHP, and JavaScript.
Tags: #laravel
Saved on: 2021-05-04

6 Tips About Data Seeding in Laravel - Laravel Daily

Laravel migration mechanism has a great function of seeding data. In this article, I will show random tips from my own experience, how to use seeding in real-life cases. Second attempt to run seeder would probably fail because of conflicting IDs.
Tags: #laravel
Saved on: 2021-04-26

Pivot tables and many-to-many relationships - Laravel Daily

Today I want to talk about a feature of Laravel which is really useful but can be potentially difficult to understand at first. Pivot table is an example of intermediate table with relationships between two other "main" tables.
Tags: #laravel
Saved on: 2021-04-26

Laravel Custom Validation: one of the fields required, but not both - Larav

Laravel Validation mechanism has a lot of rules provided - a field can be required, integer, IP address, timezone etc. But sometimes there is a need for a special rule which is not in that list. One example of this is when you have two fields and you need only one of them to be filled.
Tags: #laravel
Saved on: 2021-04-12

Using Laravel View Components – Beyond Code

When Laravel 7 was released, it introduced a new feature how you can organise and structure your blade views, called Blade components.
Tags: #laravel
Saved on: 2021-03-30

Vite with Laravel: Using React — Sebastian De Deyne

Vite supports JSX out of the box (you might have to rename .js files to .jsx), so there are no additional steps to get started with React. However, you'll probably want to enable React Refresh for a better development experience.
Saved on: 2021-03-26

Laravel SMTP Crack | Laravel News

Spammers have one goal, to send as much spam as cheaply as possible with good IPs that are not blocked, and we've been hearing more and more reports of Laravel apps getting their SMTP credentials hacked and then the attackers using those to send junk.
Tags: #laravel
Saved on: 2021-03-23

When Objects Are Not Enough

I've been looking up resources on the roots of Object-Oriented Programming - a.k.a. OOP. This journey started because there is a trend in the Laravel community of using Actions, and the saying goes as that's what "Real OOP" is about.
Saved on: 2021-03-05

An alternative way to organize the Laravel directory structure // Stefan Ba

In this article, I would like to show you an alternative way to organize your Laravel directory structure. I think the default structure is fine for the most projects. But when it comes down to larger projects I was looking for a different structure.
Saved on: 2020-12-02

Casting JSON Columns to Value Objects with Laravel – Jess Archer

Have you ever wanted to access an attribute of an Eloquent model as a value object, similar to how Eloquent lets us work with dates via Carbon? Most value objects have multiple attributes. That's part of what separates them from primitive types like strings and integers.
Saved on: 2020-10-23

Laravel's HasManyThrough cheatsheet - stitcher.io

- The current model Country has a relation to Post via User - The intermediate model is linked to the current model via users.country_id - The target model is linked to the intermediate model via posts.user_id - users.country_id maps to countries.id - posts.user_id maps to users.
Saved on: 2020-09-25

How I Redesigned My Laravel Blog (Again) - Christoph Rumpel

In 2018, I moved my blog from Jekyll to Laravel, and I took the opportunity to redesign it as well. The site was based on Sebastian De Deyne's blog, a Laravel application working with markdown files for posts.
Saved on: 2020-09-17

TALL stack

Tailwind, Alpine.js, Laravel, and Livewire. A full-stack development solution, built by Laravel community members.
Saved on: 2020-09-03

Blade UI Kit

With 27 different components, we probably have something for you. Blade UI Kit was designed to work smoothly with these technologies.
Saved on: 2020-09-03

Legacy to Laravel: How to Modernize an Aging PHP Application | Tighten

Here at Tighten, we love Laravel and get excited about staying up to date with the latest and greatest features our framework of choice has to offer.
Saved on: 2020-09-02

The BaseCode Podcast | 28: Modernizing your views

Share Copied to clipboard Embed Copied to clipboard
Tags: #laravel
Saved on: 2020-09-02

The $4335 Video Course Launch That Made Me Think ????? - Christoph Rumpel

At the beginning of 2019, I released Laravel Core Adventures as a free video course on how Laravel works under the hood. It started with a few videos on Laravel's request life-cycle and facades.
Saved on: 2020-08-13

How to add unlimited custom domains to Laravel Vapor - Laravel News

We have just launched Custom Domains V2, and I’m going to share all the technical details with you. The highs and the lows, what I’ve learned, and how to do it yourself. The end result is a highly available and globally fast infrastructure. Our customers love it, and so do we.
Tags: #laravel
Saved on: 2020-06-11

Ordering database queries by relationship columns in Laravel

In this article we're going to explore how to order database queries by the value (column) of an Eloquent relationship. For example, maybe we want to order some users by the name of their company, which is in a separate companies table.
Saved on: 2020-06-11

A TALL (Tailwind CSS, Alpine.js, Laravel, and Livewire) Preset for Laravel

There is a newly available frontend preset for Laravel that can get you up-and-running quickly with the TALL stack. If you’re not familiar with the name, it’s an acronym that describes the main technologies involved in the stack:
Tags: #laravel
Saved on: 2020-05-12

brendt/aggregate.stitcher.io

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
Saved on: 2020-03-13

Behind the scenes of Flare (or How to structure big Laravel applications) -

At Laracon AU, I gave a talk on how you can structure a big Laravel application. The codebases of both Flare and Oh Dear served as examples. By watching this talk you'll gain some valuable insights that could be applicable to your projects as well. Enjoy!
Saved on: 2020-03-07

Christoph Rumpel - Blog, Talks and books

As an example, let's say we have an export class. It helps us to save statistics for a specific user in a CSV file. Inside a controller, we create a new instance of the class and call the export method.
Tags: #laravel
Saved on: 2019-08-01

Kubernetes: deploy Laravel the easy way ♦︎ Learnk8s

TL;DR: In this article, you will learn the basics of how to deploy a Laravel application in Kubernetes. Laravel is an excellent framework for developing PHP applications.
Saved on: 2019-03-21

Moving away from magic — or: why I don’t want to use Laravel anymore

Learn to code for free. freeCodeCamp's open source curriculum has helped more than 40,000 people get jobs as developers. Get started
Saved on: 2019-02-20

Server-side apps with client-side rendering - Jonathan Reinink

My primary goal with this article isn't to compare these two approaches. If you're interested in learning more about each approach (and others), I highly recommend this article by Jason Miller and Addy Osmani from Google.
Saved on: 2019-02-12

Laracon AU Videos - Laravel News

The first Laracon Australia is now in the books and it looked like a fantastic event. Along with videos they’ve released photos from the event and you can see those on Flickr and here are a few of our favorites.
Saved on: 2018-11-20

Organise by domain

In this post we'll look at a different approach of structuring large code bases into separate domains. The name "domain" is derived from the popular DDD paradigm, or also: domain driven design.
Tags: #laravel #ddd
Saved on: 2018-10-18

Make your Laravel App Fly with PHP OPcache – Appstract – Medium

Every time you execute a PHP script, the script needs to be compiled to byte code. OPcache leverages a cache for this bytecode, so the next time the same script is requested, it doesn’t have to recompile it.
Saved on: 2018-03-10

Laracon 2017 – A Recap (And Links Galore) – Koomai – Medium

I attended my first Laracon in person and I have to say I really enjoyed the experience — maybe more than I expected to. It was well organised and the talks were diverse, informative and actionable. Day 1 was all technical and mostly revolved around Laravel.
Saved on: 2017-07-28

How to set up your Laravel application for zero-downtime (Envoyer/Capistran

If you've ever worked with Capistrano or Envoyer, you've probably seen a directory structure in your webroot that looks something like this: root root 4096 Mar 29 18:44 . root root 4096 Mar 28 14:15 .. root root 47 Mar 29 14:54 current -> .
Saved on: 2017-03-31

Using Repository Pattern in Laravel 5

These days there is a lot of buzz about software design patterns, and one of the most frequently asked questions is “How can I use some pattern with some technology“.
Tags: #php #laravel
Saved on: 2017-03-03

Setting up Laravel 5.1 on Semaphore CI - YouTube

Here I show how to set up a Laravel 5.1 project on Semaphore CI for continuous integration testing. Sorry about the crickets in the background, and occasional air conditioner noise; I like to work on my back patio, and evening fell while I was recording this. Check out Laravel: http://laravel.com/
Tags: #php #laravel
Saved on: 2015-07-14

Using StackPHP middleware in Laravel 5 – Barry vd. Heuvel

TLDR; Want StackPHP middleware in Laravel 5.0? Try barryvdh/laravel-stack-middleware In version 4.1, Laravel introduced compatibility with StackPHP middleware. As Laravel uses the Symfony HttpFoundation and the Application class implements the HttpKernelInterface, it made sense to support this.
Tags: #php #laravel
Saved on: 2015-02-27
❤️
</>
2024