1. X
  2. Ash Allen ๐Ÿš€
Log inSign up
Ash Allen ๐Ÿš€
12.3K posts
Image
user avatar
Ash Allen ๐Ÿš€
@AshAllenDesign
๐Ÿš€ Freelance Laravel Web Developer and Blogger โšกbattle-ready-laravel.com ๐Ÿ”ฅ consuming-apis-in-laravel.com โœจ web-dev-freelancing.com
Preston, UK
ashallendesign.co.uk
Joined May 2021
628
Following
9,206
Followers
RepliesRepliesMediaMedia

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

TermsยทPrivacyยทCookiesยทAccessibilityยทAds Infoยทยฉ 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up
  • Pinned
    user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Oct 3, 2023
    Consuming APIs In Laravel is now available to buy! ๐ŸŽ‰ It's the ultimate guide for learning how to build robust and powerful API integrations for your Laravel apps! ๐Ÿ‘‰ Use the following discount code to get 20% off: CAIL20 consuming-apis-in-laravel.com #laravel #php
    Image
    Consuming APIs in Laravel - Get Your Copy Now!
    From consuming-apis-in-laravel.com
    45K045K
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Jun 4, 2022
    I've submitted a PR to Laravel to propose a new "for" method to use with our models. It can be used in a few different ways but I think it could make our code more expressive. What do you think of this? ๐Ÿค” #laravel #php github.com/laravel/framewโ€ฆ
    Laravel "for" method new proposed change
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Apr 21, 2023
    How do you get your current logged in user in your Laravel apps? I like using Option A! ๐Ÿ˜„ #laravel #php
    Image
    75K075K
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Mar 1, 2024
    In PHP, you can use the null coalesce assignment operator (??=) to assign a value to a variable if the variable is null! โšก I love using this wherever I can ๐Ÿ˜„ It's really handy for setting default values! Have you used this yourself?
    Image
    19K019K
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Sep 28, 2024
    In PHP, you can use the null coalesce assignment operator (??=) to assign a value to a variable if the variable is null! โšก It's not something I use often, but it's always nice when I get the chance to. It's really handy for setting default values! Have you used it? ๐Ÿ˜„
    Image
    19K019K
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Sep 30, 2024
    I love using "match" in my PHP code! ๐Ÿ”ฅ I find it : โœ… Concise and clear โœ… More readable than if/elseif/else โœ… Easy to extend with extra branches in the future โœ… Useful that we can return the result Do you use "match" in your projects? ๐Ÿ˜„
    Image
    17K017K
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Sep 5, 2022
    Battle Ready Laravel is now available to buy! ๐Ÿš€ battle-ready-laravel.com #laravel #php
    Image
    Battle Ready Laravel - Get Your Copy Now!
    From battle-ready-laravel.com
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Feb 4, 2022
    ๐Ÿ”ฅ In Laravel 9, you'll be able to use the cool new "checked" Blade directive. This is going to be a nice addition that we can use to clean up our Blade views a little bit #laravel #php
    Laravel @checked
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Jan 23, 2023
    collect.js: A Laravel-Like Syntax for JavaScript Arrays ๐Ÿš€ ashallendesign.co.uk/blog/collect-jโ€ฆ #laravel #php #javascript
    18K018K
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    May 2, 2024
    These are some (not all) of the first @pestphp architecture tests I add to all my new Laravel projects! โšก They help me stick to conventions from the very start of the project! Are there any other arch tests you'd add to new projects? ๐Ÿ˜„
    Image
    16K016K
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Feb 2, 2022
    Yesterday, a really useful PR got merged into Laravel! It adds a "required_array_keys" validation rule. The rule checks that all of the specified keys exist in an array. I can already think of a few places in my projects where I could use this myself ๐Ÿš€ #laravel #php
    required_array_keys validation rule for Laravel
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Aug 2, 2023
    Which approach do you prefer using in your Laravel apps? ๐Ÿค” I like using "whereKey"! #laravel #php
    Image
    36K036K
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Aug 26, 2023
    โšก Did you know you can use the "hashed" cast in your Laravel models to automatically hash strings before they're stored? This is perfect for automatically hashing your users' passwords before storing them in the database! #laravel #php
    Image
    25K025K
  • user avatar
    Ash Allen ๐Ÿš€
    @AshAllenDesign
    Feb 27, 2023
    My second PR to Laravel 10 was merged! ๐ŸŽ‰ In the next release of Laravel, there'll be a new "channel:list" Artisan command that lists out your application's private broadcasting channels. Super happy this got merged ๐Ÿš€ #laravel #php
    Image
    26K026K
Advertisement
Advertisement