Skip to content

Instantly share code, notes, and snippets.

@extends('layouts.master')
@section('content')
<h1>A place to show the post.</h1>>
@endsection
@extends('layouts.master')
@section('content')
<section class="jumbotron text-center">
<div class="container">
<h1 class="jumbotron-heading">商品サーチ</h1>
<p class="lead text-muted">Something short and leading about the collection below—its contents, the creator, etc. Make it short and sweet, but not too short so folks don't simply skip over it entirely.</p>
<p>
<a href="#" class="btn btn-primary">Main call to action</a>
<div class="navbar navbar-inverse bg-inverse">
<div class="container d-flex justify-content-between">
<a href="#" class="navbar-brand">商品サーチ</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarHeader" aria-controls="navbarHeader" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
class PostsController extends Controller
{
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
<?php
Route::get('/', 'PostsController@index');
Route::get('/posts/{post}', 'PostsController@show');
<?php
//add controller
Route::get('/tasks', 'TasksController@index');
Route::get('/tasks/{task}', 'TasksController@show');
});
<?php
namespace App\Http\Controllers;
use App\Task;
//use Illuminate\Http\Request;
class TasksController extends Controller
{
public function index() {