laravel練習
関連タイピング
問題文
(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