I need to get all the rows on my database that meet some criteria. One those criteria is to not be older than 24 hours. I've been trying different solutions pos
I'm trying to shorten my controller code, and I want to know the conventions to use with Laravel while validating and storing. Controller public function store(
I currently have a validation for sortField but I checked this accepts /api/request?sortField='date'&sortField='time' and I want it to only accept one value
GET is working, but POST does not. This is because it fails via Postman API to the Laravel migrations database. function add_user(Request $request) { $user
I uploaded my laravel site in shared hosting, my site is working well in localhost, but the CSS is not working on the server. I want to clear cache but not run
We have build a user auth with laravel UI by having accounts -> users structure. Now we want to have a superuser, that can see all data fro
All of the info I can find online says that you should install bootstrap by running composer require laravel/ui and then php artisan ui boostrap. However, in La
Some classes like text-green-500, rounded are having effect and the styling is updated. Ohter classes, like bg-black, don't have any effect on the styling. I am
Hi read all the included documentation here in https://laravel.com/docs/5.4/migrations. Is there a way on how to migrate a certain migration file (1 migration
I keep gettings a 500 errors, appdebug = true, but it doesn't show me exactly what the problem is. It logs all other 500 just fine. I can make the 500 errors go
<form action="{{route('products.update',$products->id)}}" method="post"> this code make this error: Property [id] does not exist on this collection in
Hello I am beginner in using inertia and laravel, I want to pass an id from the web.php routes of my laravel and i receive error. Here is my web.php: Route::get
I create a plan and everything is correct, I enter the PayPal platform and pay and everything is fine, it redirects me to my website and everything is correct s
it's me again. I have a problem saving data to the database from the input form that I made. Here is my web route: Route::get('/admin/data-karyawan', [BasicKary
I'm trying to add Font Awesome to newly installed Laravel 8 Jetstream with Inertia but receiving the following error Unknown error from PostCSS plugin. Your cur
I have a resource controller which is ArticleController and I want to call this controller in web.php, so I coded: use App\Http\Controllers\Admin\PanelControlle
The transition Does not work in inertia page . if add appLayout between transition tag . its working . but all content gives transition. Dashboard.vue <templ
so im working with laravel 8 and using alpine.js to create value for readonly field that will on submit be processed with the form in store method.I did this su
Im trying to create a Gate in Laravel. The idea is to check if one of the roles is present on an AzureAD access token. So far I have this Gate::define('admin_cm
I am facing this error 'Attempt to read property "id" on null' in Laravel 8. It was working fine before but in my view I changed $user->id to $user->profi