laravel練習

背景
投稿者投稿者akitoいいね1お気に入り登録
プレイ回数423難易度(4.3) 534打 長文 英字

関連タイピング

問題文

ふりがな非表示 ふりがな表示

(php artisan make:controller)

php artisan make:controller

(namespace app¥http¥controllers;)

namespace App\Http\Controllers;

(illuminate¥support¥facades;)

Illuminate\Support\Facades;

(use app¥models¥user;)

use App\Models\User;

(usercontroller extends controller{)

UserController extends Controller{

(public function index(user $user))

public function index(User $user)

(view(’users.index’);)

view('users.index');

($data = $request->all();)

$data = $request->all();

(protected $fillable=[’image’];)

protected $fillable=['image'];

($this->hasmany(comment::class);)

$this->hasMany(Comment::class);

($table->bigincrements(’id’);)

$table->bigIncrements('id');

(<div class=”container”>)

<div class="container">

(@error(’comment’))

@error('comment')

(route::get(’home’, ’homecontrolle’);)

Route::get('home', 'HomeControlle');

(route::middleware(’verified’))

Route::middleware('verified')

([’only’=>[’index’,’update’]]);)

['only'=>['index','update']]);

(for ($i = 1; $i <= 9; $i++))

for ($i = 1; $i <= 9; $i++)

(php artisan migrate --seed)

php artisan migrate --seed

(php artisan serve)

php artisan serve

(php artisan config:cache)

php artisan config:cache