Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Khudadad's avatar

Pagination of more than one model in one pagination in the view. $model1 = Model1::paginate(10) $model2 = Model2::paginate(10)

merge both and paginate in controller

    {!! $all->render() !!}

in views

2 likes
Kostik's avatar

@Juukie Please look in framework code - you will see, that register() and boot() methods called in one foreach(). It's logic problem.

So, if you define some service in one ServiceProvider - you cant guarantee that service is available in boot() method in any other ServiceProvider.

lkmadushan's avatar

Upgrade Laravel Validations for better performance

example:

this validation

'role_id'       => 'required|exists:roles,id,name,!Super User|exists:roles,id,name,!Manager',

to something like this,

'role_id'       => 'required|exists:roles,id,name,![Super User, Manager]',
2 likes
lukasoppermann's avatar

For Laravel: I would love to see

  • cache tagging for db & file cache (it could be solved via name or something, but it would be very awesome.?
  • is there a reason why collections items are not accessible like this: $collection->item_name? If not, that would be awesome

For Lumen: I would love to have more api building features, maybe a bit of what fractal & dingo/api do.

5 likes
jgravois's avatar

Make a SASS-enabled version of SPARK instead of using LESS

5 likes
bashy's avatar

Some great ideas here.

I'm amazed that there's not an official place to suggest these type of things (without flooding issues on GitHub).

5 likes
Ozan's avatar

Please make sure that with method on an Eloquent\Builder has the same life-cycle with load method on a collection.

with method queries for all the rows and filters them in PHP, this is so not ideal for performance.

@TaylorOtwell @JeffreyWay

2 likes
davestewart's avatar

@karajah90 - I like the "starting points" idea.

A list of real world GitHub Laravel starter projects; API, e-commerce, etc.

2 likes
Vadiok's avatar

Be good if elixir function in PHP helper will had an option to change the build path. Also it will be good if laravel-elixir will can be passed in gulp.pipe().

1 like
Garfild's avatar

Pagination of more than one model in one pagination in the view. $model1 = Model1::paginate(10) $model2 = Model2::paginate(10) merge both and paginate in controller {!! $all->render() !!} in views

Why need to merge them and how they supposed to work?

davestewart's avatar

@RamyTalal & @TaylorOtwell

Not so much Laravel 5.3, but ways to feed back immediately on the docs.

The current pull request system is a significant barrier to just basic feedback, and issues are disabled for some reason.

It probably took me a good 9 months to get comfortable with Laravel, and during that time I certainly would not have felt comfortable wasting everyone's time with a PR that could possibly be very wrong. Now a year in, I am comfy with the framework, but it took a long time.

The documentation is good and very nicely presented, but the way it is written somehow leaves significant things out. It's the "Apple" of documentation - very pretty, but tells the story in one way, and impossible to easily feed back upon - which as a developer, can be very frustrating. Thank goodness for Laracasts!!!

Things I would like to see from a strategic perspective to improve the docs generally:

  • some way to highlight text in the docs, and leave a comment / suggestion
  • break down some of the sections into sub sections (perhaps a re-architecting)
  • explain the magic!
  • rebalance the relationship between the API docs (useless) and the guide
  • appoint a documentation team
  • an open discussion on the documentation (Taylor, you've acknowledged the difficulties in writing documentation that suits everyone on youtube)

I have a much more explicit list of comments / critique which I've been compiling in private since starting to learn Laravel about a year ago:

FWIW, I've written a fair amount of documentation for my own projects; I know how hard it is to strike the right balance!

5 likes
apocalyarts's avatar

@TaylorOtwell One of the parts of Laravel that need some improvement is localization and translation.

  • More Localization Adapters: CSV, INI, GetText
  • Support for POEdit, maybe include a default *.pot file that is preconfigured for the default paths of the framework.
  • A build in LocalizationController that will set up routes like /en, /de or /fr (depending on the config) and takes care of the redirects.
  • I use the package Laravel-Translatable by Spatie. Translatable Eloquent Models would be something that I'd like to see in the core of Laravel one day.
4 likes
NathanIsaac's avatar

I would love to see a new blade directive that can be used to reuse blade partials.

Here is an example of how to do it now.

http://stackoverflow.com/questions/18840775/how-to-reuse-a-blade-partial-in-a-template

Maybe something like this.

@partial('partials.panel', ['footer' => true])

    @section('title', 'Cool title')

    @section('body')
        Cool body content. 
    @endsection

    @section('footer')
        <button>Cool action</button>
    @endsection
    
@endpartial
@partial('partials.panel')

    @section('title', 'Cool title')

    @section('body')
        Cool body content. 
    @endsection
    
@endpartial
4 likes
davorminchorov's avatar

One line create everything possible CRUD artisan command like InfyOmLabs/laravel-generator or even a possible merge. I know we have that package there for usage but isn't Laravel based on simplicity and quickness of building apps from scratch? :D

2 likes
xxxCoLTxxx's avatar

Fire events creating,created,updating, etc. for sync, update and other methods

1 like
Jaytee's avatar

Custom Validation. For me, the documentation seems to not give a clear instruction on how to do this.

Also +1 for Models having their own directory, makes things so much cleaner.

Also, what about a way to modify artisan commands, example: sometimes i have different directories for controllers such as Admin, this means i have to manually copy and paste a controller. What about a flag on the command such as --dir=Admin etc.

php artisan make:controller AdminController --dir=Admin // App\Http\Controllers\Admin
4 likes
glinse's avatar

@Garfild The pagination merge would be useful when displaying results of search query.

So when the user enters the word "Dogs" in the search box, results from different models (articles, pages, galleries, snippets ...) should show, but then how to make sure that we show 15 records all the time across all models ?

1 like
mhdd's avatar

i think it would be great if we could have a better API driver out of box for both lumen & laravel (specially laravel). the current api is not so useful for large scale projects. i am currently developing an application based on laravel (web version, API, mobile apps). we were using laravel api added in latest releases. but in in advanced situation like multi devices login on API, guest user & its not so usable. so we are planning to user third-party libraries such dingo for APIs & JWT or oAuth2 for tokens.

thanks.

2 likes
SergiyLitvinchuk's avatar

Make collections compatible with Eloquent Relations.

<?php

namespace App;

use Illuminate\Support\Collection;

class UserTypes extends Collection
{
    /**
     * The items contained in the collection.
     *
     * @var array
     */
    // protected $items = [
    //     [
    //         'user_id' => 1,
    //         'title' => 'Some Title'
    //     ]
    // ];
    protected $items = [
        'Some Title 1',
        'Some Title 2',
    ];
}
<?php

namespace App;

use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name', 'email', 'password',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

    /**
     * @return Illuminate\Database\Eloquent\Relations\Relation
     */
    public function types()
    {
        return $this->hasMany(UserTypes::class);
    }
}
2 likes
EmilMoe's avatar

@davestewart I believe the docs can be improved if there are direct links to relevant pages in the API in the bottom.

3 likes

Please or to participate in this conversation.