skip to Main Content

Jquery – Bootstrap Toasts instead of Bootstrap alert in Laravel

I am currently using Bootstrap Alert to show the message in laravel application @if(Session::has('message')) <div class="alert alert-{{ session('class') }} alert-dismissible fade show rounded-0" role="alert"> <i class="fa fa-{{ session('icon') }}"></i> {{ session('message') }} <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> </div> @endif But…

VIEW QUESTION

In Laravel how do I show a full page? It is only showing a part of a view

We have a simple search/list form built into the Home page: <form id ="search-by-country" method='post' action='/alphabetical-list'> <!-- Include the CSRF token --> @csrf <select name="country_id" id="country_id"> <option value="US">United States</option> <option value="FR">France</option> <option value="DE">Germany</option> <option value="JP">Japan</option> </select> <button type="submit" class="btn btn-darkorange">Submit</button>…

VIEW QUESTION

Issue querying a json value in laravel project

I'm trying to fetch a record from MSSQL table based on field value which contains json data. Following is the sample column value for 'updated_value' column: [[{"phone_number":"5555555555","phone_type":"H","inactive_date":null,"restrictions":["SU","F"],"start_time":null,"end_time":null}]] My query is: $existing = ContactChangeLogs::latest() ->where('updated_value->phone_number', '5555555555') ->first(); But dd($existing) gives null…

VIEW QUESTION

Laravel – My download button is throwing a 404 route not found

I'm trying to get my app to download an Excel file when clicking the button. I can't seem to get past this 404 route error. Route Route::get('/exportPriceList', [ProductController::class, 'exportPriceList'])->name('products.exportPriceList'); Controller use IlluminateHttpRequest; use IlluminateSupportFacadesStorage; class ProductController extends Controller { public…

VIEW QUESTION
Back To Top
Search