Skip to content
Advertisement

Tag: laravel-8

Search through laravel relationship with filtered date

i search data 1 (this exist in database) within date range of 13-04-2022 to 14-04-2022 (there is no data in this date range). From this query that i used on my controller still return the data that contains a keyword that i search for (data 1). What i wanted is to return collection of data with the range of the

Freshly generated DuskTestCase.php throws “Undefined type ‘TestsCreatesApplication'”

I’m trying to set up Laravel Dusk to test my Laravel site as part of a larger Github Action CI/CD workflow. Following the documentation, I ran: The latter command created a tests/Browser directory and a tests/DuskTestCase.php file. The problem is that when I open up DuskTestCase.php Intelephense immediately complains: I also get a slightly different, but clearly related, error when

Filled many Textbox with Select box using laravel

I want to display data in a text box based on the selected options. for example if If I select the title of the book, it will display the author of the book, the price of the book, the year the book was printed. I want to display the book based on the selected option chosen my Controller my Model

update one row of table in the future (Laravel)

the update method in Laravel (version 8) edit fields at the execution time, but I want to update fields at a specefic date for exemple : I have company table with pack field : when the customer pay another pack, the pack field would be edited after the end of the current pack. there is a solution for this ?

Same blade component showing correctly in one view and not showing image from public folder in other views

I’m building a website using Laravel 8 where i have one component called app.blade.php. This component is the body of the project and includes the navbar. The problem that i’m facing is that this compenent is correctly showing in every view, while in a view called article.blade.php it is showing but without showing the logo image, only the ALT text.

Advertisement