Skip to content

Tag: laravel

v-for vueJS condition v-if

I have a problem with v-for with v-if en my component VUEJS I need that if i have one promotion active show it in my div but if i haven´t got any promotion active show button for buy a promotion. I have do all my condition, but always show that i don´t have promotion active, but in console, no, in

Pagination showing 4 ways instead of only 1 (default one)

I’m working on a Laravel project and when I used pagination with links() method, it showed in the page 3-4 methods of pagination (all of them are working good), but I want to show only one of them. I haven’t modified anything like CSS or JS, but I don’t know how to get only one out of 4 of t…

Laravel Migration: “ERROR Class not found”

I’m new to Laravel, I’m building a small project with five tables: users, products, category, transactions, and a pivot table category_product. When I try to run the command Php artisan migrate I receive an error class “Transaction” not found here are the tables. User Table Reset Passw…

Laravel Storage rename file before downlaod

I want to rename a file in the moment before download it in Laravel 8.0: I currently using the following code: But I can’t find a way to rename it before download it. I don’t want to rename the file in S3. Answer You can pass second argument to download method as below

Why Laravel does not return an item from a collection

I have nested todos. Every todo hasMany todo. I try to get all todos on the same level with staudenmeir/laravel-adjacency-list I have a collection of todos. return $allTodos[0][0]; shows the following result: return $allTodos[0][0]->id; shows 30000000 as expected. Till here everything works well. But if I …