Skip to content

Tag: laravel

Nested Folder Dynamic Component – Laravel Blade

Trying to use a dynamic component in order to pass in a variable and get to the component file I need. However, the component files are nested in another folder inside the components folder. I’m unable to do the normal <x-foldername.file /> since it is a dynamic component. Is there a different way…

How to make route in laravel using GET Page?

Before using laravel, usually I route my page using code like this: Is there anyway that I can route my page like that but in Laravel? I prefer to use format : www.example.com/?page=schedule rather than www.example.com/schedule Answer Documentation: https://laravel.com/docs/8.x/routing

Laravel package base relationship models

in our web application we want to have a simple package base cms, for having that we have users, packages, features and user_package table on database each users can be have one package which we created user_package for that each user_package belongs to many users each user_package has on packages each packag…

Bad hostname provided

Passport Version: ^10.1 Laravel Version: 8.77.1 PHP Version: 8.0.9 Database Driver & Version: mysql 8.0.27 I can not get access token. when I call it manual by curl it get this response. this host name is generate inside the docker container I’m test 192.168.224.6 ip of docker container but it also …

Nested Loop in Edit Form Blade Laravel

I have an edit form that used rowspan table and nested loop. I also have a create data form that works fine like this. I used Laravel 8 for this project. Create form But when I’m adding the value from database to create the edit form: Edit form -1 Edit Form -2 I get the sasaran, indikator, and data (que…

Laravel model user custom binding “/users/me/xxx”

I have routes with user binding like So I can use /users/1/posts, /users/5/posts etc, and in controller it’s automatically available thanks to model binding But for current logged user I want to make possible to also use /me/ instead ID, like /users/me/posts Is there a way to make it without defining se…