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 problem.show.blade.php
@extends('layouts.application')
@section('title', '詳細')
@section('content')
<br><br>
<div class="row">
<label class="col-md-12 control-label">問題ID</label>
<div class="col-md-12">{{$problem->problemId}}</div>
</div>
<div class="row">
View problem.index.blade.php
@extends('layouts.application')
@section('title', '問題マスタ')
@section('script')
<script>
$(function() {
$(".btn-dell").click(function() {
if (confirm("本当に削除しますか?")) {
} else {
return false;
View problem.web.php
<?php
use App\Models\problem;
Route::get('/', function () {
return view('welcome');
});
Route::group(['prefix' => 'problem'], function () {
//一覧
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.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.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.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 problemController2.php
<?php
namespace App\Http\Controllers;
use App\Models\problem;
use Illuminate\Http\Request;
use Models;
class ProblemController extends Controller
{
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 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>
You can’t perform that action at this time.