Laravel - Views - View Creators

View "creators" are very similar to view composers; however, they are executed immediately after the view is instantiated instead of waiting until the view is about to render. To register a view creator, use the creator method:

    
    use App\View\Creators\ProfileCreator;
    use Illuminate\Support\Facades\View;
    
    View::creator('profile', ProfileCreator::class);