Help us understand the problem. What is going on with this article?

【PHP】Laravel 学習メモ/ classの名前空間とuse宣言

More than 1 year has passed since last update.



名前空間: ファイルの場所を示す
use宣言: 中で使うファイルを宣言

namespace App\Http\クラスのディレクトリ;
use 使用するクラス
class クラス名 extends 継承するクラス名 {



namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class SampleController extends Controller{

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away