8000 Extended getSelectedValue to retrieve selected from a model collection by svrnm · Pull Request #11 · LaravelCollective/html · GitHub
[go: up one dir, main page]

Skip to content

Extended getSelectedValue to retrieve selected from a model collection #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

svrnm
Copy link
@svrnm svrnm commented Feb 24, 2015

I'm not sure if this is my special requirement or if this is useful for everyone: I'd like to get selected values from a related model. So, e.g. if you have a class Product which has a many-to-many relationship with Language, you can do the following:

Form::model($product, ...)
Form:select('languages', )
Form::close()

@adamgoose
Copy link
Member

Not going to implement this right now.

@adamgoose adamgoose closed this Feb 25, 2015
jcanchor pushed a commit to jcanchor/html that referenced this pull request Apr 28, 2023
FIxed a bug when using csrf on latest Laravel 5 build.

```
[2014-10-16 14:27:25] production.ERROR: exception 'Illuminate\Session\TokenMismatchException' in /Users/crynobone/Sites/sandbox/app/Http/Middleware/CsrfMiddleware.php:24
Stack trace:
#0 /Users/crynobone/Sites/sandbox/vendor/laravel/framework/src/Illuminate/Routing/Stack/Stack.php(73): App\Http\Middleware\CsrfMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
LaravelCollective#1 /Users/crynobone/Sites/sandbox/vendor/laravel/framework/src/Illuminate/View/Middleware/ErrorBinder.php(55): Illuminate\Routing\Stack\Stack->Illuminate\Routing\Stack\{closure}(Object(Illuminate\Http\Request))
LaravelCollective#2 /Users/crynobone/Sites/sandbox/vendor/laravel/framework/src/Illuminate/Routing/Stack/Stack.php(73): Illuminate\View\Middleware\ErrorBinder->handle(Object(Illuminate\Http\Request), Object(Closure))
LaravelCollective#3 /Users/crynobone/Sites/sandbox/storage/framework/compiled.php(8884): Illuminate\Routing\Stack\Stack->Illuminate\Routing\Stack\{closure}(Object(Illuminate\Http\Request))
LaravelCollective#4 /Users/crynobone/Sites/sandbox/vendor/laravel/framework/src/Illuminate/Routing/Stack/Stack.php(73): Illuminate\Session\Middleware\Writer->handle(Object(Illuminate\Http\Request), Object(Closure))
LaravelCollective#5 /Users/crynobone/Sites/sandbox/storage/framework/compiled.php(8850): Illuminate\Routing\Stack\Stack->Illuminate\Routing\Stack\{closure}(Object(Illuminate\Http\Request))
LaravelCollective#6 /Users/crynobone/Sites/sandbox/vendor/laravel/framework/src/Illuminate/Routing/Stack/Stack.php(73): Illuminate\Session\Middleware\Reader->handle(Object(Illuminate\Http\Request), Object(Closure))
LaravelCollective#7 /Users/crynobone/Sites/sandbox/storage/framework/compiled.php(9453): Illuminate\Routing\Stack\Stack->Illuminate\Routing\Stack\{closure}(Object(Illuminate\Http\Request))
LaravelCollective#8 /Users/crynobone/Sites/sandbox/vendor/laravel/framework/src/Illuminate/Routing/Stack/Stack.php(73): Illuminate\Cookie\Middleware\Queue->handle(Object(Illuminate\Http\Request), Object(Closure))
LaravelCollective#9 /Users/crynobone/Sites/sandbox/storage/framework/compiled.php(9401): Illuminate\Routing\Stack\Stack->Illuminate\Routing\Stack\{closure}(Object(Illuminate\Http\Request))
LaravelCollective#10 /Users/crynobone/Sites/sandbox/vendor/laravel/framework/src/Illuminate/Routing/Stack/Stack.php(73): Illuminate\Cookie\Middleware\Guard->handle(Object(Illuminate\Http\Request), Object(Closure))
LaravelCollective#11 /Users/crynobone/Sites/sandbox/app/Http/Middleware/GuestMiddleware.php(40): Illuminate\Routing\Stack\Stack->Illuminate\Routing\Stack\{closure}(Object(Illuminate\Http\Request))
LaravelCollective#12 /Users/crynobone/Sites/sandbox/vendor/laravel/framework/src/Illuminate/Routing/Stack/Stack.php(73): App\Http\Middleware\MaintenanceMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
LaravelCollective#13 [internal function]: Illuminate\Routing\Stack\Stack->Illuminate\Routing\Stack\{closure}(Object(Illuminate\Http\Request))
LaravelCollective#14 /Users/crynobone/Sites/sandbox/vendor/laravel/framework/src/Illuminate/Routing/Stack/Stack.php(59): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
LaravelCollective#15 /Users/crynobone/Sites/sandbox/storage/framework/compiled.php(983): Illuminate\Routing\Stack\Stack->run(Object(Illuminate\Http\Request))
LaravelCollective#16 /Users/crynobone/Sites/sandbox/storage/framework/compiled.php(964): Illuminate\Foundation\Application->handleRequest(Object(Illuminate\Http\Request))
LaravelCollective#17 /Users/crynobone/Sites/sandbox/public/index.php(49): Illuminate\Foundation\Application->run()
LaravelCollective#18 {main} [] []
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0