PHP Classes

File: src/views/crud/create.blade.php

Recommend this page to a friend!
  Classes of TJ Webb  >  Laravel CRUD Generator  >  src/views/crud/create.blade.php  >  Download  
File: src/views/crud/create.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel CRUD Generator
Generate MVC classes for any Laravel model
Author: By
Last change:
Date: 2 years ago
Size: 970 bytes


Class file image Download
<div class="row">
    <div class="col-lg-12 margin-tb">
        <div class="pull-left">
            <h2>Create {{$modelName}}</h2>
        <div class="pull-right">
            <a class="btn btn-primary" href="{{ route($routeRoot . '.index') }}"> Back</a>

<form action="{{ route($routeRoot . '.store') }}" method="POST">
    <div class="row">
        @foreach($fields as $field)
                $value = null;
                $fieldColumnName = $field->getColumnName();
                $fieldDisplayName = $field->getDisplayName();

            @include(field_view($modelName, $field, 'edit'))

        <div class="col-xs-12 col-sm-12 col-md-12 text-center">
            <button type="submit" class="btn btn-primary">Submit</button>

For more information send a message to info at phpclasses dot org.