Matthew Hailwood

@hailwood.nz

Principal Engineer @ http://foxbyte.nz. PHP & Laravel enthusiast | All about Typescript. Opinions are mine.

Hey @laravel-idea.com, would it be possible to add an intention on controller methods to "Create Form Request". All it would do is open the "Create Form Request" dialog like you do from the Code Generation menu, but would automatically add it to the controller method once you hit "OK".

I really wish #php would add short methods public function getLevels(): array { return ['low', 'med', 'high']; } could be public fn getLevels(): array => ['low', 'med', 'high'];

I wonder if #laravel would accept a PR to allow adding a `getAdditionalPivotColumns` to your custom pivot models. public function getAdditionalPivotColumns(): array { return [ 'level', ]; } It would act the same as calling `->withPivot(['level'])` when creating the relationship.

Hey @jetbrains.com the completions are pretty sad for something I'd be paying $20NZD/month for... To create the screenshots below I have 3 files open UserTypeEnum, enums.php (current file), and VisibilityTypesEnum @github.com Copilot got it straight away, Meanwhile JB seems to have zero context.

Completion provided by Github Copilot showing the expected result.Completion provided by Jetbrains Assistant showing a hallucinated result.Attempting to give Jetbrains Assistant one more go, we've added an extra character and manually invoked the multiline completion. It still completely hallucinates the result.

Laravel Idea now is two high-skilled developers working full-time on features we couldn't dreamed about 1-2 years ago. The 10.0 release will blow your mind.

Bild

Hey @laravel-idea.com, At some point I'm going to need to start paying you for a custom support plan 😅 Today's query! Do you think you could make "Related Rows" in the database tools work for pivot columns? E.g. pressing F4 in either of these cells should open the media table with id 4 selected.

A screenshot of a database tool showing two column headers "retainable_type" and "retainable_id". The type column contains a class name of Media. the id column contains the value 4.

Hey @jetbrains.com I have a question for you. This UI, are these interface elements specific to the Jetbrains AI plugin, or are they part of the intellij platform and usable by other AI plugins (e.g. if copilot wanted to). I'm just trying to work out why copilot's UX is so bad in PHPStorm.

Image showing the AI refactor suggestion by the Jetbrains AI plugin.Image showing a prompt "Ask AI to generate code"

Hey @laravel-idea.com, reckon you could pick the route parameters from the route definition where a Form Request is used so we can get autocompletion of the parameters? Right now I add a docblock to my requests so I can use `$this->some_route_param`. You're a wizard if you can!