Tautan Penyimpanan Artisan PHP
php artisan storage:link
Thoughtless Teira
php artisan storage:link
// it can be perfact if you don't want run cmd
Route::get('/foo', function () {
Artisan::call('storage:link');
});
Route::get('/foo', function () {
Artisan::call('storage:link');
});
$exists = Storage::disk('s3')->exists('file.jpg');
Illuminate\Database\Eloquent\Collection {#1510 ▼
#items: array:1 [▼
0 => App\Models\Peoples\HouseOwnership {#1491 ▼
#guarded: array:1 [▶]
#connection: "mysql"
#table: "house_ownerships"
#primaryKey: "id"
#keyType: "int"
+incrementing: true
#with: []
#withCount: []
+preventsLazyLoading: false
#perPage: 15
+exists: true
+wasRecentlyCreated: false
#escapeWhenCastingToString: false
#attributes: array:7 [▶]
#original: array:7 [▶]
#changes: []
#casts: []
#classCastCache: []
#attributeCastCache: []
#dates: []
#dateFormat: null
#appends: []
#dispatchesEvents: []
#observables: []
#relations: array:2 [▼
"house" => App\Models\properties\House {#1511 ▶}
"units" => Illuminate\Database\Eloquent\Collection {#1516 ▶}
]
#touches: []
+timestamps: true
#hidden: []
#visible: []
#fillable: []
}
]
#escapeWhenCastingToString: false
}