alert success laravel
return redirect()->back()->with('message', 'IT WORKS!');
Displaying message if it exists:
@if(session()->has('message'))
<div class="alert alert-success">
{{ session()->get('message') }}
</div>
@endif<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.2.0/sweetalert2.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.2.0/sweetalert2.all.min.js"></script>
Also in PHP:
- Route::auth(); giving error in laravel 7
- arry reverse in php
- display_errors php.ini
- Call to undefined function GuzzleHttp\_idn_uri_convert()
- Class 'App\Http\Controllers\Auth' not found
- array size php
- count length string php
- current date into time
- How to Use Laravel
- display file error php
- add a date in php date
- clear cach aravel
- create lavarel project backend
- date now php
- check if key exist php
- date and hour php
- envoyer mail php depuis localhost
- carbon add minutes
- Pass all data to all pages laravel
- console data in php
- current date and time in php
- codeigniter insert get id
- cache clear laravel dosent work
- datetime get current date php