skip to Main Content

Laravel – Please help me with my code, What should I do for me to paste the photo using asset in <img src=" ? ">

@foreach ($profiles as $profile) <tr> <td>{{ $profile->id }}</td> <td>{{ $profile->email }}</td> <td>{{ $profile->name }}</td> <td>{{ $profile->age }}</td> <td>{{ $profile->gender }}</td> <td>{{ $profile->position }}</td> <td>{{ $profile->department }}</td> <td>{{ $profile->phone_number }}</td> <td> @if ($profile->images) ** <img src="{{ asset('storage/app/public/'.$profile->images) }}" alt="Profile Image" style="max-width:…

VIEW QUESTION

Php versions – How to upgrade to the last version of a package?

I have this composer.json "require": { "php": "^8.0.2", "badaso/core": "^2.5", "guzzlehttp/guzzle": "=7.5.1", "laravel/framework": "^9.11", "laravel/octane": "=1.5.5", "laravel/sanctum": "^2.14.1", "laravel/tinker": "^2.7" }, "require-dev": { "beyondcode/laravel-dump-server": "^1.9", "fakerphp/faker": "^1.9.1", "laravel/sail": "^1.0.1", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^6.1", "phpunit/phpunit": "^9.5.10", "spatie/laravel-ignition": "^1.0" }, but the…

VIEW QUESTION

Laravel – How can I send multiple notification with "minishlink/web-push" pakckage?

I am using "minishlink/web-push" package to send notification in my Laravel project. Route::post("/admin/sendNotif/{sub}", function(PushSubscription $sub, Request $request){ $webPush = new WebPush([ "VAPID" => [ "publicKey" => "BNbqX8M5NJJ...", "privateKey" => "i4I89hSrn-MGvp...", "subject" => "https://example.com" ] ]); $webPush->sendOneNotification( Subscription::create(json_decode($sub->data, true)), json_encode($request->input()) );…

VIEW QUESTION
Back To Top
Search