Skip to content

Laravel 8: Undefined offset error message

I’m working with Laravel Controllers: When I fill the form that comes with this Controller I get this message: ErrorException Undefined offset: 300 From this line: So what is the problem here? Answer The problem is probably this line: $image[$size] = $imagePath . “{$size}” . $filename; it sh…

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…