Skip to content

Instantly share code, notes, and snippets.

renton18

Block or report user

Report or block renton18

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View error.blade.php
@if (count($errors) > 0)
<!-- Form Error List -->
<div class="alert alert-danger">
<div><strong>エラー</strong></div>
<div>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
View application.blade.php
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>@yield('title')</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/css/app.css">
</head>
View problemController2.php
<?php
namespace App\Http\Controllers;
use App\Models\problem;
use Illuminate\Http\Request;
use Models;
class ProblemController extends Controller
{
View problem.create.index.blade.php
@extends('layouts.application')
@section('title', '新規作成')
@section('content')
<br><br>
<form action="" method="post" class="form-horizontal">
@csrf
{{ method_field('patch') }}
@include('layouts.errors')
<div class="form-group">
View problem.create.create.blade.php
@extends('layouts.application')
@section('title', '新規作成確認')
@section('content')
<br><br>
<form action="" method="post" class="form-horizontal">
@csrf
<input type="hidden" name="problemId" value="{{$problemId}}">
<input type="hidden" name="problemCategory" value="{{$problemCategory}}">
<input type="hidden" name="problemTitle" value="{{$problemTitle}}">
View problem.edit.index.blade.php
@extends('layouts.application')
@section('title', '更新')
@section('content')
<br><br>
<form action="" method="post" class="form-horizontal">
@csrf
{{ method_field('patch') }}
@include('layouts.errors')
<div class="row">
View problem.edit.edit.blade.php
@extends('layouts.application')
@section('title', '更新確認')
@section('content')
<br><br>
<form action="" method="post" class="form-horizontal">
@csrf
<input type="hidden" name="problemId" value="{{$problemId}}">
<input type="hidden" name="problemCategory" value="{{$problemCategory}}">
<input type="hidden" name="problemTitle" value="{{$problemTitle}}">
View problem.web.php
<?php
use App\Models\problem;
Route::get('/', function () {
return view('welcome');
});
Route::group(['prefix' => 'problem'], function () {
//一覧
You can’t perform that action at this time.