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

Route Binding in Laravel - Ahmed Ash

Exploring Laravel and its features deeply. Making complex ideas easy to understand.
Tags: #laravel #php
Saved on: 2023-08-08

Using Laravel's Policies and Route Model Binding without Eloquent

I always thought Laravel's Policies and Route Model Binding were only able to be used with Eloquent models. Turns out I was wrong
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…
Tags: #laravel
Saved on: 2023-04-03

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

Learn how to Dockerize your Laravel application for seamless deployment and scaling. The step-by-step guide simplifies the process, ensuring optimal performance and flexibility.
Tags: #laravel
Saved on: 2023-02-28

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

It's common to see two programmers who code the same feature differently. 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
Tags: #laravel #php
Saved on: 2022-12-21

Learn how to upload files in Laravel like a Pro - Laravel News

One of the things that I see many people struggling with is file uploads. How do we upload a file in Laravel? What is the best way to upload a file?
Tags: #laravel
Saved on: 2022-10-21

Laravel’s safety mechanisms — PlanetScale

A comprehensive overview of Laravel’s many safety features that can help you prevent painful mistakes.
Tags: #laravel
Saved on: 2022-10-20

Optimizing circular relationships in Laravel - Jonathan Reinink

In this article I explain how to optimize circular relationships in Laravel using the Model::setRelation() method.
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. To power future features, we've recently changed our database structure and refactored some pieces in our code base. We increased performance by decreasing the number of queries. In this blog post, we'd like to to share some techniques that might be helpfull to increase the performance of your Laravel app too.
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. Follow this tutorial and start using it today
Saved on: 2022-06-21

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. The topics range from basic coding best-practises to advanced systems architecture, database design, … Continue reading Top Laracon Conference Presentations
Saved on: 2022-03-18

The Laravel Artisan Cheatsheet

The Laravel 12.x Artisan cheatsheet. Discover Laravel 12.x php artisan commands.
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. A...
Saved on: 2021-10-13

Initializer for Laravel

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

Custom Route Files | Laravel News

In this tutorial, learn how to create custom routes files that do not set sessions.
Tags: #laravel
Saved on: 2021-10-08

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

Configure Laravel's validator to accept an image or a video in a single field with different file size rules for each.
Tags: #laravel
Saved on: 2021-09-20

Homepage | Skipper

Skipper is visual editor for ORM frameworks Doctrine, Doctrine 2, MongoDB ODM, Propel and CakePHP. It allows to import, edit and export ORM definitions in easy-to-use graphical interface.
Saved on: 2021-09-14

LaravelDaily/laravel-tips: Awesome tips for Laravel

Awesome tips for Laravel
Tags: #laravel
Saved on: 2021-08-18

Symfony vs Laravel: Comparing Features and Benefits

In this article, you’ll learn the similarities and differences between Laravel vs. Symfony and choose the one that best suits your project.
Saved on: 2021-07-30

Hacking Laravel - Custom Relationships with Eloquent

The document outlines advanced techniques for implementing custom relationships in Laravel using Eloquent, particularly focusing on ternary relationships. It discusses the limitations of traditional many-to-many relationships and introduces methods to manage these complexities through the use of belonging and eager loading strategies. The goals include understanding Eloquent's model and query builder classes, solving the n+1 problem, and implementing a basic belongstoternary relationship.
Tags: #laravel
Saved on: 2021-06-25

[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...
Tags: #laravel #php
Saved on: 2021-06-17

Pushing the boundaries of Eloquent

My experience building advanced reporting with Eloquent
Tags: #laravel
Saved on: 2021-06-05

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

Learn about the strict lazy loading setting that allows you to disable it entirely for non-production environments.
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
Tags: #laravel
Saved on: 2021-05-04

Using Laravel View Components – Beyond Code

Learn how to use Laravel's view components effectively.
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. React Refresh lets you edit components without…
Saved on: 2021-03-26

Laravel SMTP Crack | Laravel News

Spammers have one goal, send as much spam as cheaply as possible, with good IP's 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

Alan Kay mentions in a talk that the Smalltalk don't scale quite well to big teams and infrastructure. However, he had some ideas on how to make OOP scale.
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

The Service Container, with Christoph Rumpel | The Laravel Podcast

You may not know it, but the service container — also known as the container, the IOC container, the DI container, or just "the application" — is that the core of every Laravel application. It's the glue that holds it all together! In this episode, author of Laravel Core Adventures Christoph Rumpel helps us dig deeply into what the container is and why it's good for you to know about it.
Tags: #laravel
Saved on: 2020-11-11

Casting JSON Columns to Value Objects with Laravel – Jess Archer

With the rise of JSON columns, it can be handy to safely cast to and from value objects.
Saved on: 2020-10-23

Laravel's HasManyThrough cheatsheet - stitcher.io

How to use Laravel's HasManyTrough
Saved on: 2020-09-25

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

Every few years, I feel the pressure to redesign my blog. Design trends change fast, and so does my taste. Once I don't like my site anymore, I cannot let go. I need to work on a new redesign. This article is about the latest redesign of my Laravel blog.
Saved on: 2020-09-17

TALL stack

Learn more about the newest stack for Laravel developers. Full stack, all in Laravel-inspired syntax.
Saved on: 2020-09-03

Blade UI Kit

A set of renderless components to utilise in your Laravel Blade views. Built for the TALL stack. Completely open-source.
Saved on: 2020-09-03

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

Many of our clients have legacy PHP apps and want to move to Laravel. We’re often asked "should we rewrite or refactor?" While full rewrites are appealing, they’re also risky. Here’s our approach to gradually refactoring legacy code that lets you start using Laravel right away.
Saved on: 2020-09-02

The BaseCode Podcast | 28: Modernizing your views

In this episode, JMac and Jess discuss ways to modernize your views which make the code less complex and more readable.
Tags: #laravel
Saved on: 2020-09-02

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

One year ago, I released my first stand-alone video course called Laravel Core Adventures. Since the release, I was looking forward to writing about the experience and the numbers. Still, everything turned out differently than expected (again). It is time to reflect on one year of Laravel Core Adventures.
Saved on: 2020-08-13

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

We have just launched Custom Domains V2 in Fathom, and in this tutorial learn all the technical details behind this feature. 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.
Tags: #laravel
Saved on: 2020-06-11

Ordering database queries by relationship columns in Laravel

In this article I explain how to order database queries in Laravel by the value (column) of an Eloquent relationship. We look at has-one, belongs-to, has-many and belongs-to-many relationships.
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 (Tailwind CSS, Alpine.js, Laravel, and Livewire) stack.
Tags: #laravel
Saved on: 2020-05-12

brendt/aggregate.stitcher.io: A community-driven content aggregator

A community-driven content aggregator
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

The service container is a quite complex topic, and I see many struggling to understand what it does. It was the same for me, and the main reason is that many explanations concentrate on "how" to use the container. With this article, I want to give you my introduction to this topic by focusing on the "why" and "when" the container can help us with our dependencies.
Tags: #laravel
Saved on: 2019-08-01

Kubernetes: deploy Laravel the easy way ♦︎ Learnk8s

In this article, I'll explain how to deal with the simple requirement of running a Laravel application as a local Kubernetes set up.
Saved on: 2019-03-21

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

By Niklas Schöllhorn It is time for a change in the tools that I use. And I’ll tell you why! First of all, I want to make sure that you know about my intentions. I am not trying to rant about Laravel or why other frameworks might be better. This arti...
Saved on: 2019-02-20

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

In this article I introduce a technique I've been using lately that blends my favourite parts of server-side and client-sidee apps: using client-side rendering in a server-side app.
Saved on: 2019-02-12

Laracon AU Videos - Laravel News

Photos and videos from Laracon are now live!
Saved on: 2018-11-20

Organise by domain - stitcher.io

Well structured code is essential in maintaining large projects. We'll look into splitting a project in domains to keep a grip on your code.
Tags: #ddd #laravel
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…
Saved on: 2018-03-10

WP init

Choáng Club là một trong những sàn cá cược uy tín nhất Việt Nam, Tải Choáng Club trải nghiệm cá cược đa dạng và an toàn cho người chơi.
Saved on: 2018-03-05

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…
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 -> ./releases/1490824249 root root 4096 Mar 29 14:50 releases Where you're expecting to see your webroot containing your Git repository, instead it's this weird structure. What gives? A brief introduction to Capistrano-style zero-downtime deploys The reason you're getting zero-downtime deploy from these tools is because the entire deploy process—clone, composer install, etc.—doesn't happen in the directory that is currently serving your site. Instead, each new release gets its own separate "release" directory, all while your site is still being served from its current "release" directory. - current -> ./releases/1490802721 * apache/nginx serves from this directory - releases - 1490802133 (the new release you're building right now) - 1490802721 (latest complete release) - 1490803081 (a little bit older release) - 1490824249 (an even older release) All of these release directories are just subdirectories of releases. Each directory here represents one of your deploys, and each directory individually has everything needed to serve your site. Your web server points to yourproject/current/public and therefore the "currently served" release is just that which has a symlink pointed at it from yourproject/current. So, once the build process is complete for each new release, your deploy tool will delete the current symlink and create a new current symlink that points to your latest release. Boom. Now that release is live. Caveats In general, Laravel is no different from any other project in that this style of deployment works great. In fact, a tool provided by Taylor Otwell, Envoyer, is predicated around this release style. However, every tool has a different set of caveats around how to handle them well in zero-downtime settings. Here's why: There are always some things that you want to persist between releases. Most of it lives in databases and caches, which is fine—nothing's wiping your database on every deploy. But some isn't. Take the storage folder; do you want to wipe that every time you push a new release? Naw. What about the .env file? Definitely naw. So there are a few quick tricks. How to set up your deploy for Laravel Remember: If you use Envoyer, this is all handled for you. But if you don't, here's what to do. Clone your release into a new release folder. This should be handled by your deploy tool. composer install -o --no-interaction php artisan migrate --no-interaction --force (optional, if you don't commit your built scripts) npm install (or yarn) and either gulp --production (Elixir) or npm run production (Mix) rm -rf storage && ln -s ../../storage ./ (Delete the storage directory and symlink it to a storage folder in the parent) ln -s ../../.e
Saved on: 2017-03-31

Using Repository Pattern in Laravel 5 - Bosnadev - Code Factory

Implementation of Repository Pattern in Laravel means separations of the data access logic from the business logic. Communication between the data access
Tags: #laravel #php
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...
Tags: #laravel #php
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 Middleware and Laravel 4 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. This made it easy to use middlewares from StackPHP,...
Tags: #laravel #php
Saved on: 2015-02-27
❤️
</>
2025