Answers for "laravel view::"

PHP
3

laravel make view

php artisan make:view viewName
Posted by: Guest on June-23-2021
0

laravel view-model

class PostViewModel extends ViewModel
{
    protected $ignore = ['ignoredMethod'];

    // …
    
    public function ignoredMethod() { /* … */ }
}
Posted by: Guest on March-07-2021
0

laravel view-model

<input type="text" value="{{ $post->title }}" />
<input type="text" value="{{ $post->body }}" />

<select>
    @foreach ($categories as $category)
        <option value="{{ $category->id }}">{{ $category->name }}</option>
    @endforeach
</select>

<a href="{{ $indexUrl }}">Back</a>
Posted by: Guest on March-07-2021

Browse Popular Code Answers by Language