david19

Member Since 1 Year Ago

Experience Points
8,340
Total
Experience

1,660 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
36
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 2
8,340 XP
Apr
15
1 day ago
Activity icon

Replied to Load Routes From A Service Provider

@thinkverse I fix the issue. You must add the middleware 'web',too.

Route::middleware(['web','auth:sanctum', 'verified'])->group(function () {
   
    Route::resource('/dashboard/organization',OrganizationController::class)->only('edit','update');

  });

Now it works!!! :)

Activity icon

Replied to Load Routes From A Service Provider

I will try fix this issue. But your answere wars correct, many thanks for your help :)

Activity icon

Replied to Load Routes From A Service Provider

Many thanks :) Yes, now it works. But if i visit this route, i automatically redirect to /dashboard. Maby it is because, the middlewares.

Route::middleware(['auth:sanctum', 'verified'])->group(function () {
   
    Route::resource('/dashboard/organization',OrganizationController::class)->only('edit','update');

  });
Activity icon

Replied to Load Routes From A Service Provider

Thanks for your help. Normal structure,

app/Providers/OrganizationServiceProvider

Register the Provider, in Config/App.php

The Path of the Route File
/routes/organization/web.php
<?php

namespace App\Providers;

use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;


class OrganizationServiceProvider extends ServiceProvider
{
  
    public function register()
    {
        
    }

    public function boot()
    {
       
        $this->loadMigrationsFrom('database/migrations/organization');

        $this->loadRoutesFrom('routes/organization/web.php');
       
}

}

The Migrations works, and also the command

php artisan route:list

The routes are there.

<?php

use Illuminate\Support\Facades\Route;


use App\Http\Controllers\Organization\OrganizationController;


Route::middleware(['auth:sanctum', 'verified'])->group(function () {
   
    Route::resource('/dashboard/organization',OrganizationController::class)->only('edit','update');

    
       
});
require(routes/organization/web.php): Failed to open stream: No such file or directory
Activity icon

Replied to Load Routes From A Service Provider

Thanks for your answere. But why the routes will found, when i check " php artisan route:list "?

The DIR is for the package path, because packages are in the root folder. But my route file is in the normal /routes/organization/web.php folder.

When i try this, it will also not work :(

$this->loadRoutesFrom(__DIR__.'/routes/organization/web.php');
Activity icon

Replied to Load Routes From A Service Provider

@jlrdw yes, it is correct. Maby the problem is, i dont use this in a package. Its a application service provider. But the migration works, and the routes are there, in the route list. I dont know why the error:

require(routes/organization/web.php): Failed to open stream: No such file or directory

Activity icon

Started a new Conversation Load Routes From A Service Provider

Hello Team. I created a new service provider.

In the boot method i call migrations and a route file. The migrations works, but for the routes, i get the error, failed to open stream.

php artisan route:list --compact

The routes are there! But it will not work.

<?php

namespace App\Providers\Schema;

use Illuminate\Support\ServiceProvider;

class OrganizationServiceProvider extends ServiceProvider
{
   
    public function register()
    {
        //
    }

  
    public function boot()
    {
        $this->loadMigrationsFrom('database/migrations/organization');
        $this->loadRoutesFrom('routes/organization/web.php');
        
    }
}


The Migration works, but not the route file. Many thanks for help :)

Mar
28
2 weeks ago
Activity icon

Replied to Ckeditor5 And Webpack In Laravel

Hey, fixed yesterday.

npm install --save @ckeditor/ckeditor5-build-classic

Create a new ckeditor5-classic.js in your /js folder.

import ClassicEditor from '@ckeditor/ckeditor5-build-classic';

ClassicEditor
    .create( document.querySelector( '#editor' ) )
    .then( editor => {
        console.log( editor );
    } )
    .catch( error => {
        console.error( error );
    } );

Add the ckeditor5-classic.js in your webpack.js

mix.js('resources/js/ckeditor5-classic', 'public/js');
npm run dev

In your Ckeditor5 Blade component, push the .ckeditor5-classic.js

@push('ckeditor5')

<script src="{{ mix('js/ckeditor5-classic.js') }}" defer></script>
@endpush

Now it works perfect !! ;)

Mar
27
2 weeks ago
Activity icon

Started a new Conversation Ckeditor5 And Webpack In Laravel

Hello Team. My ckeditor5 works with the cdn, or in the public folder ( the old way ). This works! But now i try install ckeditor 5 via webpack. The documentation is very easy, but its not work.

npm install --save @ckeditor/ckeditor5-build-classic

My app.js

require('./bootstrap');
require('alpinejs');
require('@ckeditor/ckeditor5-build-classic');

In the blade view:

<script>
ClassicEditor
    .create( document.querySelector( '#editor' ) )
    .then( editor => {
        console.log( editor );
    } )
    .catch( error => {
        console.error( error );
    } );
</script>
npm run dev ( no errors )

Now in the browser i get the error, ClassicEditor is not defined. This why i dont like npm, but i will learn this. Composer is much easyier.

Mar
26
3 weeks ago
Activity icon

Started a new Conversation CKEDITOR 5 Configuration Toolbar

Hello Team. I intercreated ckeditor5 with livewire and alpine.js via a the cdn. It works! But now i will configur the toolbar, but it doesnt work. That is the downside, if your javascript acknowledge is bad.

This is my code and it work..

<div wire:ignore>
<label for="{{ $name }}" class="block text-sm font-medium text-gray-700">
{{ $label }}
</label>
<div class="mt-1">
<textarea
wire:key="{{ $name }}"
x-ref="{{ $name }}"
x-data
x-init="
ClassicEditor.create($refs.{{ $name }})
  .then( function(editor)
  {
editor.model.document.on('change:data', () => {
    $dispatch('input', editor.getData())
    })

  })
.catch( error => {
console.error( error );
} );

"
{{ $attributes }}
      
      class="shadow-sm focus:ring-green-500 focus:border-green-500 mt-1 block w-full sm:text-sm border-gray-300 rounded-md">
     
    </textarea>
    </div>
    <x-backend.messages.error :message="$message" :name="$name" />
  </div>

For the toolbar and heading seettings i need this code from the documentation

ClassicEditor
    .create( document.querySelector( '#editor' ), {
        toolbar: [ 'heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote' ],
        heading: {
            options: [
                { model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
                { model: 'heading1', view: 'h1', title: 'Heading 1', class: 'ck-heading_heading1' },
                { model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2' }
            ]
        }
    } )
    .catch( error => {
        console.log( error );
    } );

I tryed insert in my alpine.js but it will not work :(

Mar
25
3 weeks ago
Activity icon

Replied to Check If Constant Exists With Defined Not Work

@tykus @michaloravec Both works!!! Many thanks. But i can only give one best answere... Many thanks guys

Activity icon

Replied to Check If Constant Exists With Defined Not Work

@tykus @michaloravec

Yes, with

defined('User::MYCONST')

works! But the problem is, "User is a variable in my case".

defined('$model::MYCONST')

Do you have any idea?

Activity icon

Started a new Conversation Check If Constant Exists With Defined Not Work

Hello Team.

if(defined(User::MYCONST)){
    run my code here.....
}

The problem, i still get the error "Undefinded" Constant in the User model. But why, i check if is defined or not. Many thanks.

Mar
11
1 month ago
Activity icon

Replied to Use Listeners From A Trait

@tykus Many thanks that works :) I think this is missing in the livewire docs.

Activity icon

Replied to Use Listeners From A Trait

Thanks for your answere. This is my trait in livewire:

<?php

namespace App\Http\Livewire\MultiStepForm\Traits;

use Livewire\Component;

//class MultiStepForm extends Component
trait MultiStepForm
{


    public $step = 1;
    public $state = [];
    public $model;
    public $realPath;
    public $record;


    protected $listeners = [
        'stepForward',
        'stepBack',
        'mergeState',
        'store',
    ];


    public function stepForward()
    {
        $this->step++;
    }

    public function stepBack()
    {
        $this->step--;
    }


    public function mergeState($state)
    {
        $this->state = array_merge($this->state, $state);
    }

    public function saveMedia($name, $collection)
    {
        if ($this->state[$name]['realpath'] !== null) {

            $this->record
                ->addMedia($this->state[$name]['realpath'])
                ->toMediaCollection($this->state[$collection]['media']);
        }
    }
}

The Other Livewire Component

<?php

namespace App\Http\Livewire\User;

use Livewire\Component;
use App\Http\Livewire\MultiStepForm\Traits\MultiStepForm;



class UserCreateForm extends Component
{
    use MultiStepForm;



   //Some code here....

    public function render()
    {
        return view('livewire.user.user-create-form');
    }
}

Now i get a error, because i use the proberty $listener in the trait.

Livewire\Component and App\Http\Livewire\MultiStepForm\Traits\MultiStepForm define the same property ($listeners) in the composition of App\Http\Livewire\User\UserCreateForm. However, the definition differs and is considered incompatible. Class was composed

When i remove the listeners from the trait, it works, but the i must use the listeners in my component. This is not my solution :(

Activity icon

Started a new Conversation Use Listeners From A Trait

I have in my trait some listeners:

protected $listeners = [
        'stepForward',
        'stepBack',
        'mergeState',
        'getMedia',
        'store',
    ];

How i can use this listeners in my other livewire components? Because you can not use the same Properties in both. Many thanks

Activity icon

Replied to Get Attributes From Image File

@tisuchi Hey many thanks, that works. Now i understand this. For fetching i must use "getMyAttribute()" :) Many thanks

Activity icon

Started a new Conversation Get Attributes From Image File

Hello Team. If i dd my file, i get this:

dd($imageFile);
+"disk": "local"
  #storage: Illuminate\Filesystem\FilesystemAdapter {#1653 ▶}
  #path: "livewire-tmp/1cVFw70lz8KuH4V9KbIJxM2iToNRDg-metaRGF2aWQtR3Jhc3MtRmVyaWEtZTE1NTUyNzMxNjk5NTYuanBn-.jpg"
  -test: false
  -originalName: "1cVFw70lz8KuH4V9KbIJxM2iToNRDg-metaRGF2aWQtR3Jhc3MtRmVyaWEtZTE1NTUyNzMxNjk5NTYuanBn-.jpg"
  -mimeType: "application/octet-stream"
  -error: 0
  #hashName: null
  path: "C:\Users\David\AppData\Local\Temp"
  filename: "1cVFw70lz8KuH4V9KbIJxM2iToNRDg-metaRGF2aWQtR3Jhc3MtRmVyaWEtZTE1NTUyNzMxNjk5NTYuanBn-.jpg"
  basename: "phpF167.tmp"
  pathname: "C:\Users\David\AppData\Local\Temp\phpF167.tmp"
  extension: "tmp"
  realPath: "C:\Users\David\Desktop\jetxx\jetxx\storage\app\livewire-tmp/1cVFw70lz8KuH4V9KbIJxM2iToNRDg-metaRGF2aWQtR3Jhc3MtRmVyaWEtZTE1NTUyNzMxNjk5NTYuanBn-.jpg"
  size: 24039
  writable: false
  readable: false
  executable: false
  file: false
  dir: false
  link: false

Example: How i can fetch the

size: 24039 ?

Many Thanks :)

Feb
17
1 month ago
Activity icon

Started a new Conversation File Append 3 Lines Before End File

Hello Team.

$fileDestination = base_path('myfile.php'); // destination of file
        $line = count(file($fileDestination)) -3; //  count all the lines and -3
        $handle = fopen($fileDestination,'a');  // open the file with append parameter
        while(!feof($handle)){
            
            if($line){
                fwrite($handle,'my added text here'.PHP_EOL);    // read the file. if line is - 3, write the text there.
                
            }
            break;
        }
        fclose($handle);

This code not work, its append allways in the last line, not -3 before. Many thanks

Feb
02
2 months ago
Activity icon

Started a new Conversation Loadbalancer A Record

Hello Team, i have a question for loadbalancer.

Example: 3 Servers. 1 Loadbalancer and App 1 , App 2

The A record for App 1 and App 2 is the normal server ip, thats right? Because Forge manage it behind the scenes. Or should the A record for App 1 and App 2 point to the load balancer ip?

Many thanks

Jan
23
2 months ago
Activity icon

Replied to Livewire Load Not Relations In Edit

@snapey Thanks for your answere. Sorry i found the mistake:

User::with('roles')->find($this->modelId);
Activity icon

Started a new Conversation Livewire Load Not Relations In Edit

Hello Team,

In my livewire datatable, all works fine. But for edit a user, livewire not load my relations of the user model.

public function loadModel()
    {
        $data                           = User::find($this->modelId);
        $this->name                     = $data->name;
        $this->title                    = $data->title;
        $this->slug                     = $data->slug;
        dd($data);
    }
App\Models\User {#1564 ▼
  #fillable: array:4 [▶]
  #hidden: array:4 [▶]
  #casts: array:1 [▶]
  #appends: array:1 [▶]
  #connection: "mysql"
  #table: "users"
  #primaryKey: "id"
  #keyType: "int"
  +incrementing: true
  #with: []
  #withCount: []
  #perPage: 15
  +exists: true
  +wasRecentlyCreated: false
  #attributes: array:12 [▶]
  #original: array:12 [▶]
  #changes: []
  #classCastCache: []
  #dates: []
  #dateFormat: null
  #dispatchesEvents: []
  #observables: []
  #relations: []
  #touches: []
  +timestamps: true
  #visible: []
  #guarded: array:1 [▶]
  #rememberTokenName: "remember_token"
  #accessToken: null
}

The relations is a empty array. I dont know why :(

Jan
20
2 months ago
Activity icon

Started a new Conversation Many To Many (Search Select Relation In Datatable)

Hello Team. I created a User Datatable Livewire Component. In the table, i have a search select field. ID and Name works, but not the Roles in the Relationship. Its Many to Many relationship with Roles.

( role_user table ).

If i use only laravel in a blade view, i can fetch easy the roles.

@foreach($users as $user)
   @foreach($user->roles as $role)
      {{ $role->name }}
   @endforeach
@endforeach

That works fine! But now i like use the select box for search in the livewire datatable, and it will not work. I dont find the mistake. Name and ID works great, but not the Relationship Roles. Here is my code function. Many thanks.

User.php

public static function search($search)
    {
        return empty($search) ? static::query()
            : static::query()
                ->whereHas('roles', function ($query) use ($search) {
                    $query->where('name', 'like', '%'.$search.'%');
                })
                ->orWhere('id', 'like', '%'.$search.'%')
                ->orWhere('name', 'like', '%'.$search.'%');
                
                
    }
Jan
18
2 months ago
Activity icon

Replied to Fetch Only Id From Array

It will not work.

Here is my code:

$deleteFiles = array($this->selected);
        
        collect($deleteFiles[0])->pluck('id')->toArray();
        dd($deleteFiles);
Activity icon

Replied to Fetch Only Id From Array

Many Thanks for the answer, but it will not work. I dont know why. The pluck function return null. I convert the array in other array, maby now its better.

array:1 [▼
  0 => array:2 [▼
    0 => "['id' => 27,'slug' => moderne-kommunikation]"
    1 => "['id' => 26,'slug' => nachwuchs-binden]"
  ]
]

I need this:

array:1 [▼
  0 => "27"
  1 => "26"
]
Activity icon

Started a new Conversation Fetch Only Id From Array

Hello Team, i have a array here

array:2 [▼
  0 => "['id' => 27,'slug' => moderne-kommunikation]"
  1 => "['id' => 26,'slug' => nachwuchs-binden]"
]

Now i try fetch only the id`s without the slugs.

I need this:

array:2 [▼
  0 => "27"
  1 => "26"
]

Many Thanks :)

Jan
14
3 months ago
Activity icon

Replied to Function For Subtract All Column Records?

Many thanks, the "sum" function works :)

Activity icon

Started a new Conversation Function For Subtract All Column Records?

Hello Team,

In my database table, i have a column "star_value".

ID | star_value 
1.  | 5
2.  | 4
3.  | 5
4.  | 2

I search a function for subtract all this records.

5 + 4 + 5 + 2 = 16

Many thanks :)

Jan
01
3 months ago
Activity icon

Replied to Dynamic Route Parameter At First Place

@snapey Many thanks this works :D

Activity icon

Replied to Dynamic Route Parameter At First Place

@tray2 Hey Tray2, many thanks. Yes i use resource Routes for my admin routes. But for the frontend, i need only 1 route, with a slug. I mean this works,

Route::get('/{post:slug}'

But then, the other routes for /login,/register doesnt work.

Activity icon

Started a new Conversation Dynamic Route Parameter At First Place

Hello Team,

This is the normal way for use dynamic route parameter.

Route::get('/posts/{post:slug}', [FrontController::class, 'hub'])->name('front.hub');

There are a smart way for using this?

Route::get('/{post:slug}'

Many thanks :)

Dec
04
4 months ago
Activity icon

Replied to Laravel Policy With Roles And Permissions

@michaloravec Thanks, i know this package. But its better for learning :)

Activity icon

Started a new Conversation Laravel Policy With Roles And Permissions

Hello Team. I created my own Roles and Permissions. Very standart ManyToMany Pivot table.

Tables in database:

roles
role_user
permissions
permission_role

In blade i can fetch my roles like this:

@foreach($users as $user)
	@foreach($user->roles as $role)
	@endforeach
@endforeach

Same for permissions:

@foreach($roles as $role)
	@foreach($role->permissions as $permission)
	@endforeach
@endforeach

It works very fine :)

Now i created a Model Policy. And here i will check: Have the User a Role with this permission, but i make a mistake.

public function viewAny(User $user)
    {
       
    	$permission = Permission::where('name','user_index')->first();
        $roles = $user->roles()->with('permissions')->get();
        
	dd($permission); works!
        dd($roles); works!
       How i can check, if the user has a role with this permission name "user_index"?
  
        
    }

Many thanks :)

Dec
03
4 months ago
Activity icon

Replied to Dynamic Sections With Tailwind UI In A Laravel App. Some Ideas?

@tray2 Thanks, but this will not work.

example: try in a view:

@php
$mycomponent = '<x-sidebar />';
@endphp

{!! $mycomponent !!}

It render this, but not correct. It will not merge the classes. Yes, I think i will need more vue or alpine.js for this.

Activity icon

Replied to Dynamic Sections With Tailwind UI In A Laravel App. Some Ideas?

@tray2 Hey sorry, but one more problem. I can not render blade as variable.

<x-component />

You can not save

<x-component />

in a database. Your idea is great, but how can render this? Many thanks.

Activity icon

Replied to Dynamic Sections With Tailwind UI In A Laravel App. Some Ideas?

@tray2 This is the track which i need. Many Thanks Tray :)

Activity icon

Replied to Dynamic Sections With Tailwind UI In A Laravel App. Some Ideas?

@tray2 Yes, this is the same idea. Yes i know how to create a pivot table, thanks. But the question is, how to connect my component id, with the blade component? I like only save the placeholders in the database, not all .... Its the same with roles and permissions. (Pivot). But Roles dont have Styleing. I dont know where i should save the styles for every component. Many thanks for your time :)

Activity icon

Replied to Dynamic Sections With Tailwind UI In A Laravel App. Some Ideas?

@tray2 Many thanks! Yes, blade components are great.

OKay the first step is: Create all blade components for the tailwind ui. Thats easy. But the problem is save the data in the database. Its a ManyToMany relation with a Pivot table. Every Page can have multiple components. Or do you have a other approach for the database? :)

Activity icon

Started a new Conversation Dynamic Sections With Tailwind UI In A Laravel App. Some Ideas?

Hello Team. I love the tailwind ui designs for the frontend. In my next laravel app, i will create a dynamic render sections function. Its the same as elementor for wordpress, but not so big.

My vision: Create a page in my admin panel, and then i can choose which sections from tailwind ui should be rendered.

My idea for a easy approach: Create Model for Pages and Sections. Every Section belongsTo a Page_ID. My javascript is bad, but i can use alpine.js and livewire. Do you know more approaches for that? Many thanks.

Nov
16
5 months ago
Activity icon

Started a new Conversation Laravel Components Pattern How?

Hello Team. I think, Components are great, but the problem is the readable problem. If i create my own components, the next developer can not read this. Everbody knows the simple MVC Pattern in Laravel and everbody can read this, if you use standarts laravel stuff.

My question is, there are a simple pattern for using components? The other thing is: We have 2 differnt components types.

  1. Simple Blade Components for not repeating all the classes.
  2. Full Components with a PHP Class or Laravel Livewire, example: Datatables.

All this things are great, but how we can structure this?

Oct
23
5 months ago
Activity icon

Replied to Fortify Action ( Create User With Relationship )

I think i need a Event Listener for that.

Activity icon

Started a new Conversation Fortify Action ( Create User With Relationship )

Hello Team,

Fortify have this actions folder. There i can add my custom Fields.

I have " hasOne "relationship with the User. A "User" hasOne "Invoice". A Invoice belongs to a User.

After register, i like create a new invoice,too.

This is the fortify create function in the actions folder:

return User::create([
            'name' => $input['name'],
            'email' => $input['email'],
            'password' => Hash::make($input['password']),
            
]);

How i can add my own create invoice here for the new user is created?

$user->invoice()->create([

'name' => 'sometext',

]);

Many thanks :)

Oct
20
5 months ago
Activity icon

Awarded Best Reply on Spatie Response Cache On Forge Server

Sorry it works!! You dont see the line, when the app is running in APP_DEBUG=FALSE. You can see this in the config of responseCache.

Activity icon

Replied to Spatie Response Cache On Forge Server

Sorry it works!! You dont see the line, when the app is running in APP_DEBUG=FALSE. You can see this in the config of responseCache.

Activity icon

Started a new Conversation Spatie Response Cache On Forge Server

Hello Team,

I setting up "responseCache" Spatie Package on my local server. It works perfect. I can see the "header" in Chrome tools:

laravel-responsecache: Tue, 20 Oct 2020 06:40:51 +0200

All works!!

Now i make a Deploy on forge, and i get no errors. All its okay. But i dont see the response cache on chrome tools on production server. I dont know why. Forge deploy settings is standart. Have anyone a idea?

git pull origin main
$FORGE_COMPOSER install --no-interaction --prefer-dist --optimize-autoloader

( flock -w 10 9 || exit 1
    echo 'Restarting FPM...'; sudo -S service $FORGE_PHP_FPM reload ) 9>/tmp/fpmlock

if [ -f artisan ]; then
    $FORGE_PHP artisan migrate --force
    
fi