skip to Main Content

Laravel Eloquent for where Like

I'm trying to filter account in laravel.1 user can have many accounts with different format. It doesnt seem to work.The query: $accounts = $user->account()->where('account_no','like', ['34%','35%','3303%','3304%'])->get(); i'm wondering if this can be done or not?

VIEW QUESTION

Laravel Date assign errorr

I have small problem in app. Backend is Laravel and Front end is Nuxtjs. When User registered on app,then users must be wait antill Administartor approved. When Admin approved this user we give them 3 months subscription. In my code…

VIEW QUESTION

404 not found when i try to delete some of my post – Laravel

I try to delete some of my post with slug but it's not found. My route: Route::resource('/dashboard/berita', DashboardController::class)->parameters([ 'berita' => 'post:slug' ])->middleware('auth'); My Controller: public function destroy(Post $post) { $post->delete(); return redirect('/dashboard/berita')->with('success', 'Berita sudah dihapus!'); } My blade: <form action="{/dashboard/berita/{{…

VIEW QUESTION
Back To Top
Search