<abbr id="0vmef"><input id="0vmef"><strong id="0vmef"></strong></input></abbr>
  • <thead id="0vmef"><font id="0vmef"></font></thead>
    1. <thead id="0vmef"><font id="0vmef"></font></thead>
    2. \n

      Welcome to My Site!<\/h1>\n<\/body>\n<\/html><\/pre>

      You don't need to use PHP tags unless you want to inject dynamic data — Blade makes that easy too (more on that below).<\/p>


      3. Returning the View from a Route or Controller<\/strong><\/h3>

      Now that you've created the view, you need to return it from a route or controller.<\/p>

      From a Route Closure:<\/h4>

      Open routes\/web.php<\/code> and define a route like this:<\/p>

       use Illuminate\\Support\\Facades\\Route;\n\nRoute::get('\/', function () {\n    return view('welcome');\n});<\/pre>

      The string 'welcome'<\/code> matches the filename welcome.blade.php<\/code> .<\/p>

      From a Controller:<\/h4>

      If you're using a controller, make sure you import the View<\/code> facade or use the helper function view()<\/code> :<\/p>

       namespace App\\Http\\Controllers;\n\nuse Illuminate\\View\\View;\n\nclass HomeController extends Controller\n{\n    public function index(): View\n    {\n        return view('welcome');\n    }\n}<\/pre>

      Then link the controller method to a route:<\/p>

       use App\\Http\\Controllers\\HomeController;\n\nRoute::get('\/', [HomeController::class, 'index']);<\/pre>

      4. Passing Data to the View<\/strong><\/h3>

      Most of the time, you'll want to pass dynamic data to your views.<\/p>

      Let's say you want to pass a $name<\/code> variable:<\/p>

      In your route or controller:<\/p>

       return view('welcome', ['name' => 'John']);<\/pre>

      In your Blade view ( welcome.blade.php<\/code> ), you can display it like this:<\/p>

       

      Welcome, {{ $name }}!<\/h1><\/pre>

      Blade will automatically escape any HTML in {{ }}<\/code> , which helps prevent XSS attacks.<\/p>

      Other ways to pass data include:<\/p>

      • Using compact()<\/code> to pass multiple variables at once
         return view('profile', compact('user', 'posts'));<\/pre><\/li>
      • Using the with()<\/code> method
         return view('profile')->with('user', $user);<\/pre><\/li><\/ul>

        5. Using Layouts and Sections (Optional but Powerful)<\/strong><\/h3>

        As your app grows, you'll probably want to reuse parts of your HTML (like headers and footers). Blade allows you to create layouts and extend them.<\/p>

        Create a layout file like this:<\/p>

         \n\n\n    My Site<\/title>\n<\/head>\n<body>
        <h1><a href="http://www.miracleart.cn/">国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂</a></h1>\n    @yield('content')\n<\/body>\n<\/html><\/pre><p> Then create a child view that extends it:<\/p><pre class='brush:php;toolbar:false;'> <!-- resources\/views\/home.blade.php -->\n@extends('layouts.app')\n\n@section('content')\n    <h1>Home Page<\/h1>\n@endsection<\/pre><p> This way, you avoid repeating yourself and keep your code DRY.<\/p>\n<hr>\n<p> So, creating a new view in Laravel really comes down to placing a <code>.blade.php<\/code> file in the right location and returning it from a route or controller. Once you get the hang of Blade syntax and layout inheritance, building views become second nature.<\/p>\n<p> Basically that's it.<\/p>"}	</script>
        	
        <meta http-equiv="Cache-Control" content="no-transform" />
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <script>var V_PATH="/";window.onerror=function(){ return true; };</script>
        </head>
        
        <body data-commit-time="2023-12-28T14:50:12+08:00" class="editor_body body2_2">
        	<link rel="stylesheet" type="text/css" href="/static/csshw/stylehw.css">
        <header>
            <div   id="377j5v51b"   class="head">
                <div   id="377j5v51b"   class="haed_left">
                    <div   id="377j5v51b"   class="haed_logo">
                        <a href="http://www.miracleart.cn/" title="" class="haed_logo_a">
                            <img src="/static/imghw/logo.png" alt="" class="haed_logoimg">
                        </a>
                    </div>
                    <div   id="377j5v51b"   class="head_nav">
                        <div   id="377j5v51b"   class="head_navs">
                            <a href="javascript:;" title="Community" class="head_nava head_nava-template1">Community</a>
                            <div   class="377j5v51b"   id="dropdown-template1" style="display: none;">
                                <div   id="377j5v51b"   class="languagechoose">
                                    <a href="http://www.miracleart.cn/article.html" title="Articles" class="languagechoosea on">Articles</a>
                                    <a href="http://www.miracleart.cn/faq/zt" title="Topics" class="languagechoosea">Topics</a>
                                    <a href="http://www.miracleart.cn/wenda.html" title="Q&A" class="languagechoosea">Q&A</a>
                                </div>
                            </div>
                        </div>
        
                        <div   id="377j5v51b"   class="head_navs">
                            <a href="javascript:;" title="Learn" class="head_nava head_nava-template1_1">Learn</a>
                            <div   class="377j5v51b"   id="dropdown-template1_1" style="display: none;">
                                <div   id="377j5v51b"   class="languagechoose">
                                    <a href="http://www.miracleart.cn/course.html" title="Course" class="languagechoosea on">Course</a>
                                    <a href="http://www.miracleart.cn/dic/" title="Programming Dictionary" class="languagechoosea">Programming Dictionary</a>
                                </div>
                            </div>
                        </div>
        
                        <div   id="377j5v51b"   class="head_navs">
                            <a href="javascript:;" title="Tools Library" class="head_nava head_nava-template1_2">Tools Library</a>
                            <div   class="377j5v51b"   id="dropdown-template1_2" style="display: none;">
                                <div   id="377j5v51b"   class="languagechoose">
                                    <a href="http://www.miracleart.cn/toolset/development-tools" title="Development tools" class="languagechoosea on">Development tools</a>
                                    <a href="http://www.miracleart.cn/toolset/website-source-code" title="Website Source Code" class="languagechoosea">Website Source Code</a>
                                    <a href="http://www.miracleart.cn/toolset/php-libraries" title="PHP Libraries" class="languagechoosea">PHP Libraries</a>
                                    <a href="http://www.miracleart.cn/toolset/js-special-effects" title="JS special effects" class="languagechoosea on">JS special effects</a>
                                    <a href="http://www.miracleart.cn/toolset/website-materials" title="Website Materials" class="languagechoosea on">Website Materials</a>
                                    <a href="http://www.miracleart.cn/toolset/extension-plug-ins" title="Extension plug-ins" class="languagechoosea on">Extension plug-ins</a>
                                </div>
                            </div>
                        </div>
        
                        <div   id="377j5v51b"   class="head_navs">
                            <a href="http://www.miracleart.cn/ai" title="AI Tools" class="head_nava head_nava-template1_3">AI Tools</a>
                        </div>
        
                        <div   id="377j5v51b"   class="head_navs">
                            <a href="javascript:;" title="Leisure" class="head_nava head_nava-template1_3">Leisure</a>
                            <div   class="377j5v51b"   id="dropdown-template1_3" style="display: none;">
                                <div   id="377j5v51b"   class="languagechoose">
                                    <a href="http://www.miracleart.cn/game" title="Game Download" class="languagechoosea on">Game Download</a>
                                    <a href="http://www.miracleart.cn/mobile-game-tutorial/" title="Game Tutorials" class="languagechoosea">Game Tutorials</a>
        
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                            <div   id="377j5v51b"   class="head_search">
                        <input id="key_words"  onkeydown="if (event.keyCode == 13) searchs('en')" class="search-input" type="text" autocomplete="off" name="keywords" required="required" placeholder="Block,address,transaction,news" value="">
                        <a href="javascript:;" title="search"  onclick="searchs('en')"><img src="/static/imghw/find.png" alt="search"></a>
                    </div>
                        <div   id="377j5v51b"   class="head_right">
                    <div   id="377j5v51b"   class="haed_language">
                        <a href="javascript:;" class="layui-btn haed_language_btn">English<i class="layui-icon layui-icon-triangle-d"></i></a>
                        <div   class="377j5v51b"   id="dropdown-template" style="display: none;">
                            <div   id="377j5v51b"   class="languagechoose">
                                                        <a href="javascript:setlang('zh-cn');" title="簡(jiǎn)體中文" class="languagechoosea">簡(jiǎn)體中文</a>
                                                        <a href="javascript:;" title="English" class="languagechoosea">English</a>
                                                        <a href="javascript:setlang('zh-tw');" title="繁體中文" class="languagechoosea">繁體中文</a>
                                                        <a href="javascript:setlang('ja');" title="日本語" class="languagechoosea">日本語</a>
                                                        <a href="javascript:setlang('ko');" title="???" class="languagechoosea">???</a>
                                                        <a href="javascript:setlang('ms');" title="Melayu" class="languagechoosea">Melayu</a>
                                                        <a href="javascript:setlang('fr');" title="Fran?ais" class="languagechoosea">Fran?ais</a>
                                                        <a href="javascript:setlang('de');" title="Deutsch" class="languagechoosea">Deutsch</a>
                                                    </div>
                        </div>
                    </div>
                    <span id="377j5v51b"    class="head_right_line"></span>
                                    <div style="display: block;" id="login" class="haed_login ">
                            <a href="javascript:;"  title="Login" class="haed_logina ">Login</a>
                        </div>
                        <div style="display: block;" id="reg" class="head_signup login">
                            <a href="javascript:;"  title="singup" class="head_signupa">singup</a>
                        </div>
                    
                </div>
            </div>
        </header>
        
        	
        	<main>
        		<div   id="377j5v51b"   class="Article_Details_main">
        			<div   id="377j5v51b"   class="Article_Details_main1">
        							<div   id="377j5v51b"   class="Article_Details_main1L">
        					<div   id="377j5v51b"   class="Article_Details_main1Lmain" id="Article_Details_main1Lmain">
        						<div   id="377j5v51b"   class="Article_Details_main1L1">Table of Contents</div>
        						<div   id="377j5v51b"   class="Article_Details_main1L2" id="Article_Details_main1L2">
        							<!-- 左側(cè)懸浮,文章定位標(biāo)題1 id="Article_Details_main1L2s_1"-->
        															<div   id="377j5v51b"   class="Article_Details_main1L2s ">
        									<a href="#strong-Creating-the-Blade-File-strong" title=" <strong>2. Creating the Blade File</strong>" > <strong>2. Creating the Blade File</strong></a>
        								</div>
        																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
        									<a href="#strong-Returning-the-View-from-a-Route-or-Controller-strong" title=" <strong>3. Returning the View from a Route or Controller</strong>" > <strong>3. Returning the View from a Route or Controller</strong></a>
        								</div>
        																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
        									<a href="#From-a-Route-Closure" title=" From a Route Closure:" > From a Route Closure:</a>
        								</div>
        																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
        									<a href="#From-a-Controller" title=" From a Controller:" > From a Controller:</a>
        								</div>
        																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
        									<a href="#strong-Passing-Data-to-the-View-strong" title=" <strong>4. Passing Data to the View</strong>" > <strong>4. Passing Data to the View</strong></a>
        								</div>
        																<div   id="377j5v51b"   class="Article_Details_main1L2s ">
        									<a href="#strong-Using-Layouts-and-Sections-Optional-but-Powerful-strong" title=" <strong>5. Using Layouts and Sections (Optional but Powerful)</strong>" > <strong>5. Using Layouts and Sections (Optional but Powerful)</strong></a>
        								</div>
        														</div>
        					</div>
        				</div>
        							<div   id="377j5v51b"   class="Article_Details_main1M">
        					<div   id="377j5v51b"   class="phpgenera_Details_mainL1">
        						<a href="http://www.miracleart.cn/" title="Home"
        							class="phpgenera_Details_mainL1a">Home</a>
        						<img src="/static/imghw/top_right.png" alt="" />
        												<a href="http://www.miracleart.cn/phpkj/"
        							class="phpgenera_Details_mainL1a">PHP Framework</a>
        						<img src="/static/imghw/top_right.png" alt="" />
        												<a href="http://www.miracleart.cn/phpkj/laravel/"
        							class="phpgenera_Details_mainL1a">Laravel</a>
        						<img src="/static/imghw/top_right.png" alt="" />
        						<span>How do I create a new view in Laravel?</span>
        					</div>
        					
        					<div   id="377j5v51b"   class="Articlelist_txts">
        						<div   id="377j5v51b"   class="Articlelist_txts_info">
        							<h1 class="Articlelist_txts_title">How do I create a new view in Laravel?</h1>
        							<div   id="377j5v51b"   class="Articlelist_txts_info_head">
        								<div   id="377j5v51b"   class="author_info">
        									<a href="http://www.miracleart.cn/member/1468484.html"  class="author_avatar">
        									<img class="lazy"  data-src="https://img.php.cn/upload/avatar/000/000/001/66ea83c1be883950.png" src="/static/imghw/default1.png" alt="James Robert Taylor">
        									</a>
        									<div   id="377j5v51b"   class="author_detail">
        																			<a href="http://www.miracleart.cn/member/1468484.html" class="author_name">James Robert Taylor</a>
                                        										</div>
        								</div>
                        			</div>
        							<span id="377j5v51b"    class="Articlelist_txts_time">Jun 14, 2025 am	 12:36 AM</span>
        															<div   id="377j5v51b"   class="Articlelist_txts_infos">
        																			<span id="377j5v51b"    class="Articlelist_txts_infoss on">laravel</span>
        																			<span id="377j5v51b"    class="Articlelist_txts_infoss ">view</span>
        																	</div>
        														
        						</div>
        					</div>
        					<hr />
        					<div   id="377j5v51b"   class="article_main php-article">
        						<div   id="377j5v51b"   class="article-list-left detail-content-wrap content">
        						<ins class="adsbygoogle"
        							style="display:block; text-align:center;"
        							data-ad-layout="in-article"
        							data-ad-format="fluid"
        							data-ad-client="ca-pub-5902227090019525"
        							data-ad-slot="3461856641">
        						</ins>
        						
        
        					<p>The steps to create a new view in Laravel are as follows: 1. The view is stored in the resources/views directory and can be organized into subfolders according to functions; 2. Create a file with the extension .blade.php and add HTML content; 3. Return the view through a routing closure or controller, use the view() function and match the file name; 4. Dynamic data can be passed to the view through an array, compact() or with() method; 5. Use @extends and @section to implement layout inheritance to improve code reusability. Follow these steps to efficiently create and manage views.</p>
        <p> Creating a new view in Laravel is straightforward, and it's one of the first things you'll do when building a web application with this framework. The main idea is to separate your logic from presentation by using Blade templates — Laravel's own templated engine.</p>
        <p> Let's walk through how to create a new view step by step.</p>
        <hr>
        <h3> <strong>1. Understanding Where Views Are Stored</strong>
        </h3>
        <p> In Laravel, all views are stored inside the <code>resources/views</code> directory. This is where Blade files live. Each <code>.blade.php</code> file represents a single view.</p>
        <p> If you're creating a simple homepage view, for example, you might place it directly in the <code>views</code> folder:</p><pre class='brush:php;toolbar:false;'> resources/views/home.blade.php</pre><p> For more complex applications, you can organize views into subfolders. For instance, if you're working on a blog section:</p><pre class='brush:php;toolbar:false;'> resources/views/blog/index.blade.php</pre><p> This structure keeps things clean and easy to manage as your app grows.</p><hr /><h3 id="strong-Creating-the-Blade-File-strong"> <strong>2. Creating the Blade File</strong></h3><p> To create a new view:</p><ul><li> Navigate to the <code>resources/views</code> directory.</li><li> Create a new <code>.blade.php</code> file or a folder file if needed.</li><li> Add some basic HTML content to test it out.</li></ul><p> Here's an example of what a basic Blade template might look like:</p><pre class='brush:php;toolbar:false;'> <!-- resources/views/welcome.blade.php -->
        <!DOCTYPE html>
        <html>
        <head>
            <title>Welcome</title>
        </head>
        <body>
            <h1>Welcome to My Site!</h1>
        </body>
        </html></pre><p> You don't need to use PHP tags unless you want to inject dynamic data — Blade makes that easy too (more on that below).</p><hr /><h3 id="strong-Returning-the-View-from-a-Route-or-Controller-strong"> <strong>3. Returning the View from a Route or Controller</strong></h3><p> Now that you've created the view, you need to return it from a route or controller.</p><h4 id="From-a-Route-Closure"> From a Route Closure:</h4><p> Open <code>routes/web.php</code> and define a route like this:</p><pre class='brush:php;toolbar:false;'> use Illuminate\Support\Facades\Route;
        
        Route::get(&#39;/&#39;, function () {
            return view(&#39;welcome&#39;);
        });</pre><p> The string <code>&#39;welcome&#39;</code> matches the filename <code>welcome.blade.php</code> .</p><h4 id="From-a-Controller"> From a Controller:</h4><p> If you're using a controller, make sure you import the <code>View</code> facade or use the helper function <code>view()</code> :</p><pre class='brush:php;toolbar:false;'> namespace App\Http\Controllers;
        
        use Illuminate\View\View;
        
        class HomeController extends Controller
        {
            public function index(): View
            {
                return view(&#39;welcome&#39;);
            }
        }</pre><p> Then link the controller method to a route:</p><pre class='brush:php;toolbar:false;'> use App\Http\Controllers\HomeController;
        
        Route::get(&#39;/&#39;, [HomeController::class, &#39;index&#39;]);</pre><hr /><h3 id="strong-Passing-Data-to-the-View-strong"> <strong>4. Passing Data to the View</strong></h3><p> Most of the time, you'll want to pass dynamic data to your views.</p><p> Let's say you want to pass a <code>$name</code> variable:</p><p> In your route or controller:</p><pre class='brush:php;toolbar:false;'> return view(&#39;welcome&#39;, [&#39;name&#39; => &#39;John&#39;]);</pre><p> In your Blade view ( <code>welcome.blade.php</code> ), you can display it like this:</p><pre class='brush:php;toolbar:false;'> <h1>Welcome, {{ $name }}!</h1></pre><p> Blade will automatically escape any HTML in <code>{{ }}</code> , which helps prevent XSS attacks.</p><p> Other ways to pass data include:</p><ul><li> Using <code>compact()</code> to pass multiple variables at once<pre class='brush:php;toolbar:false;'> return view(&#39;profile&#39;, compact(&#39;user&#39;, &#39;posts&#39;));</pre></li><li> Using the <code>with()</code> method<pre class='brush:php;toolbar:false;'> return view(&#39;profile&#39;)->with(&#39;user&#39;, $user);</pre></li></ul><hr /><h3 id="strong-Using-Layouts-and-Sections-Optional-but-Powerful-strong"> <strong>5. Using Layouts and Sections (Optional but Powerful)</strong></h3><p> As your app grows, you'll probably want to reuse parts of your HTML (like headers and footers). Blade allows you to create layouts and extend them.</p><p> Create a layout file like this:</p><pre class='brush:php;toolbar:false;'> <!-- resources/views/layouts/app.blade.php -->
        <html>
        <head>
            <title>My Site</title>
        </head>
        <body>
            @yield(&#39;content&#39;)
        </body>
        </html></pre><p> Then create a child view that extends it:</p><pre class='brush:php;toolbar:false;'> <!-- resources/views/home.blade.php -->
        @extends(&#39;layouts.app&#39;)
        
        @section(&#39;content&#39;)
            <h1>Home Page</h1>
        @endsection</pre><p> This way, you avoid repeating yourself and keep your code DRY.</p>
        <hr>
        <p> So, creating a new view in Laravel really comes down to placing a <code>.blade.php</code> file in the right location and returning it from a route or controller. Once you get the hang of Blade syntax and layout inheritance, building views become second nature.</p>
        <p> Basically that's it.</p><p>The above is the detailed content of How do I create a new view in Laravel?. For more information, please follow other related articles on the PHP Chinese website!</p>
        
        
        						</div>
        					</div>
        					<div   id="377j5v51b"   class="wzconShengming_sp">
        						<div   id="377j5v51b"   class="bzsmdiv_sp">Statement of this Website</div>
        						<div>The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn</div>
        					</div>
        				</div>
        
        				<ins class="adsbygoogle"
             style="display:block"
             data-ad-format="autorelaxed"
             data-ad-client="ca-pub-5902227090019525"
             data-ad-slot="2507867629"></ins>
        
        
        
        				<div   id="377j5v51b"   class="AI_ToolDetails_main4sR">
        
        
        				<ins class="adsbygoogle"
                style="display:block"
                data-ad-client="ca-pub-5902227090019525"
                data-ad-slot="3653428331"
                data-ad-format="auto"
                data-full-width-responsive="true"></ins>
            
        
        
        					<!-- <div   id="377j5v51b"   class="phpgenera_Details_mainR4">
        						<div   id="377j5v51b"   class="phpmain1_4R_readrank">
        							<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
        								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        									src="/static/imghw/hotarticle2.png" alt="" />
        								<h2>Hot Article</h2>
        							</div>
        							<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottom">
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/1796821119.html" title="Guide: Stellar Blade Save File Location/Save File Lost/Not Saving" class="phpgenera_Details_mainR4_bottom_title">Guide: Stellar Blade Save File Location/Save File Lost/Not Saving</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<span>4 weeks ago</span>
        										<span>By DDD</span>
        									</div>
        								</div>
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/1796827210.html" title="Oguri Cap Build Guide | A Pretty Derby Musume" class="phpgenera_Details_mainR4_bottom_title">Oguri Cap Build Guide | A Pretty Derby Musume</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<span>2 weeks ago</span>
        										<span>By Jack chen</span>
        									</div>
        								</div>
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/1796828723.html" title="Agnes Tachyon Build Guide | A Pretty Derby Musume" class="phpgenera_Details_mainR4_bottom_title">Agnes Tachyon Build Guide | A Pretty Derby Musume</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<span>2 weeks ago</span>
        										<span>By Jack chen</span>
        									</div>
        								</div>
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/1796821436.html" title="Dune: Awakening - Advanced Planetologist Quest Walkthrough" class="phpgenera_Details_mainR4_bottom_title">Dune: Awakening - Advanced Planetologist Quest Walkthrough</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<span>4 weeks ago</span>
        										<span>By Jack chen</span>
        									</div>
        								</div>
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/1796821278.html" title="Date Everything: Dirk And Harper Relationship Guide" class="phpgenera_Details_mainR4_bottom_title">Date Everything: Dirk And Harper Relationship Guide</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<span>4 weeks ago</span>
        										<span>By Jack chen</span>
        									</div>
        								</div>
        														</div>
        							<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
        								<a href="http://www.miracleart.cn/article.html">Show More</a>
        							</div>
        						</div>
        					</div> -->
        
        
        											<div   id="377j5v51b"   class="phpgenera_Details_mainR3">
        							<div   id="377j5v51b"   class="phpmain1_4R_readrank">
        								<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
        									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        										onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        										src="/static/imghw/hottools2.png" alt="" />
        									<h2>Hot AI Tools</h2>
        								</div>
        								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_bottom">
        																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
        											<a href="http://www.miracleart.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img">
        												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" />
        											</a>
        											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
        												<a href="http://www.miracleart.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_title">
        													<h3>Undress AI Tool</h3>
        												</a>
        												<p>Undress images for free</p>
        											</div>
        										</div>
        																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
        											<a href="http://www.miracleart.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img">
        												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" />
        											</a>
        											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
        												<a href="http://www.miracleart.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title">
        													<h3>Undresser.AI Undress</h3>
        												</a>
        												<p>AI-powered app for creating realistic nude photos</p>
        											</div>
        										</div>
        																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
        											<a href="http://www.miracleart.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img">
        												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" />
        											</a>
        											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
        												<a href="http://www.miracleart.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title">
        													<h3>AI Clothes Remover</h3>
        												</a>
        												<p>Online AI tool for removing clothes from photos.</p>
        											</div>
        										</div>
        																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
        											<a href="http://www.miracleart.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img">
        												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" />
        											</a>
        											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
        												<a href="http://www.miracleart.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_title">
        													<h3>Clothoff.io</h3>
        												</a>
        												<p>AI clothes remover</p>
        											</div>
        										</div>
        																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
        											<a href="http://www.miracleart.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img">
        												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" />
        											</a>
        											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
        												<a href="http://www.miracleart.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_title">
        													<h3>Video Face Swap</h3>
        												</a>
        												<p>Swap faces in any video effortlessly with our completely free AI face swap tool!</p>
        											</div>
        										</div>
        																</div>
        								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
        									<a href="http://www.miracleart.cn/ai">Show More</a>
        								</div>
        							</div>
        						</div>
        					
        
        
        					<div   id="377j5v51b"   class="phpgenera_Details_mainR4">
        						<div   id="377j5v51b"   class="phpmain1_4R_readrank">
        							<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
        								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        									src="/static/imghw/hotarticle2.png" alt="" />
        								<h2>Hot Article</h2>
        							</div>
        							<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottom">
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/1796821119.html" title="Guide: Stellar Blade Save File Location/Save File Lost/Not Saving" class="phpgenera_Details_mainR4_bottom_title">Guide: Stellar Blade Save File Location/Save File Lost/Not Saving</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<span>4 weeks ago</span>
        										<span>By DDD</span>
        									</div>
        								</div>
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/1796827210.html" title="Oguri Cap Build Guide | A Pretty Derby Musume" class="phpgenera_Details_mainR4_bottom_title">Oguri Cap Build Guide | A Pretty Derby Musume</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<span>2 weeks ago</span>
        										<span>By Jack chen</span>
        									</div>
        								</div>
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/1796828723.html" title="Agnes Tachyon Build Guide | A Pretty Derby Musume" class="phpgenera_Details_mainR4_bottom_title">Agnes Tachyon Build Guide | A Pretty Derby Musume</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<span>2 weeks ago</span>
        										<span>By Jack chen</span>
        									</div>
        								</div>
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/1796821436.html" title="Dune: Awakening - Advanced Planetologist Quest Walkthrough" class="phpgenera_Details_mainR4_bottom_title">Dune: Awakening - Advanced Planetologist Quest Walkthrough</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<span>4 weeks ago</span>
        										<span>By Jack chen</span>
        									</div>
        								</div>
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/1796821278.html" title="Date Everything: Dirk And Harper Relationship Guide" class="phpgenera_Details_mainR4_bottom_title">Date Everything: Dirk And Harper Relationship Guide</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<span>4 weeks ago</span>
        										<span>By Jack chen</span>
        									</div>
        								</div>
        														</div>
        							<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
        								<a href="http://www.miracleart.cn/article.html">Show More</a>
        							</div>
        						</div>
        					</div>
        
        
        											<div   id="377j5v51b"   class="phpgenera_Details_mainR3">
        							<div   id="377j5v51b"   class="phpmain1_4R_readrank">
        								<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
        									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        										onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        										src="/static/imghw/hottools2.png" alt="" />
        									<h2>Hot Tools</h2>
        								</div>
        								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_bottom">
        																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
        											<a href="http://www.miracleart.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_top_img">
        												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Notepad++7.3.1" />
        											</a>
        											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
        												<a href="http://www.miracleart.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_title">
        													<h3>Notepad++7.3.1</h3>
        												</a>
        												<p>Easy-to-use and free code editor</p>
        											</div>
        										</div>
        																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
        											<a href="http://www.miracleart.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_top_img">
        												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Chinese version" />
        											</a>
        											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
        												<a href="http://www.miracleart.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_title">
        													<h3>SublimeText3 Chinese version</h3>
        												</a>
        												<p>Chinese version, very easy to use</p>
        											</div>
        										</div>
        																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
        											<a href="http://www.miracleart.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_top_img">
        												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Zend Studio 13.0.1" />
        											</a>
        											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
        												<a href="http://www.miracleart.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_title">
        													<h3>Zend Studio 13.0.1</h3>
        												</a>
        												<p>Powerful PHP integrated development environment</p>
        											</div>
        										</div>
        																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
        											<a href="http://www.miracleart.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_top_img">
        												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Dreamweaver CS6" />
        											</a>
        											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
        												<a href="http://www.miracleart.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_title">
        													<h3>Dreamweaver CS6</h3>
        												</a>
        												<p>Visual web development tools</p>
        											</div>
        										</div>
        																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
        											<a href="http://www.miracleart.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_top_img">
        												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac version" />
        											</a>
        											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
        												<a href="http://www.miracleart.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_title">
        													<h3>SublimeText3 Mac version</h3>
        												</a>
        												<p>God-level code editing software (SublimeText3)</p>
        											</div>
        										</div>
        																	</div>
        								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
        									<a href="http://www.miracleart.cn/ai">Show More</a>
        								</div>
        							</div>
        						</div>
        										
        
        					
        					<div   id="377j5v51b"   class="phpgenera_Details_mainR4">
        						<div   id="377j5v51b"   class="phpmain1_4R_readrank">
        							<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
        								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        									src="/static/imghw/hotarticle2.png" alt="" />
        								<h2>Hot Topics</h2>
        							</div>
        							<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottom">
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/gmailyxdlrkzn" title="Where is the login entrance for gmail email?" class="phpgenera_Details_mainR4_bottom_title">Where is the login entrance for gmail email?</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
        											<img src="/static/imghw/eyess.png" alt="" />
        											<span>8638</span>
        										</div>
        										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
        											<img src="/static/imghw/tiezi.png" alt="" />
        											<span>17</span>
        										</div>
        									</div>
        								</div>
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/java-tutorial" title="Java Tutorial" class="phpgenera_Details_mainR4_bottom_title">Java Tutorial</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
        											<img src="/static/imghw/eyess.png" alt="" />
        											<span>1783</span>
        										</div>
        										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
        											<img src="/static/imghw/tiezi.png" alt="" />
        											<span>16</span>
        										</div>
        									</div>
        								</div>
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/cakephp-tutor" title="CakePHP Tutorial" class="phpgenera_Details_mainR4_bottom_title">CakePHP Tutorial</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
        											<img src="/static/imghw/eyess.png" alt="" />
        											<span>1729</span>
        										</div>
        										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
        											<img src="/static/imghw/tiezi.png" alt="" />
        											<span>56</span>
        										</div>
        									</div>
        								</div>
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/laravel-tutori" title="Laravel Tutorial" class="phpgenera_Details_mainR4_bottom_title">Laravel Tutorial</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
        											<img src="/static/imghw/eyess.png" alt="" />
        											<span>1579</span>
        										</div>
        										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
        											<img src="/static/imghw/tiezi.png" alt="" />
        											<span>28</span>
        										</div>
        									</div>
        								</div>
        															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
        									<a href="http://www.miracleart.cn/faq/php-tutorial" title="PHP Tutorial" class="phpgenera_Details_mainR4_bottom_title">PHP Tutorial</a>
        									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
        										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
        											<img src="/static/imghw/eyess.png" alt="" />
        											<span>1444</span>
        										</div>
        										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
        											<img src="/static/imghw/tiezi.png" alt="" />
        											<span>31</span>
        										</div>
        									</div>
        								</div>
        														</div>
        							<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
        								<a href="http://www.miracleart.cn/faq/zt">Show More</a>
        							</div>
        						</div>
        					</div>
        				</div>
        			</div>
        							<div   id="377j5v51b"   class="Article_Details_main2">
        					<div   id="377j5v51b"   class="phpgenera_Details_mainL4">
        						<div   id="377j5v51b"   class="phpmain1_2_top">
        							<a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img
        									src="/static/imghw/index2_title2.png" alt="" /></a>
        						</div>
        						<div   id="377j5v51b"   class="phpgenera_Details_mainL4_info">
        
        													<div   id="377j5v51b"   class="phphistorical_Version2_mids">
        								<a href="http://www.miracleart.cn/faq/1796822470.html" title="What are policies in Laravel, and how are they used?" class="phphistorical_Version2_mids_img">
        									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175043648172451.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What are policies in Laravel, and how are they used?" />
        								</a>
        								<a href="http://www.miracleart.cn/faq/1796822470.html" title="What are policies in Laravel, and how are they used?" class="phphistorical_Version2_mids_title">What are policies in Laravel, and how are they used?</a>
        								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 21, 2025 am	 12:21 AM</span>
        								<p class="Articlelist_txts_p">InLaravel,policiesorganizeauthorizationlogicformodelactions.1.Policiesareclasseswithmethodslikeview,create,update,anddeletethatreturntrueorfalsebasedonuserpermissions.2.Toregisterapolicy,mapthemodeltoitspolicyinthe$policiesarrayofAuthServiceProvider.</p>
        							</div>
        														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
        								<a href="http://www.miracleart.cn/faq/1796819947.html" title="What are routes in Laravel, and how are they defined?" class="phphistorical_Version2_mids_img">
        									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/174973087242937.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What are routes in Laravel, and how are they defined?" />
        								</a>
        								<a href="http://www.miracleart.cn/faq/1796819947.html" title="What are routes in Laravel, and how are they defined?" class="phphistorical_Version2_mids_title">What are routes in Laravel, and how are they defined?</a>
        								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 12, 2025 pm	 08:21 PM</span>
        								<p class="Articlelist_txts_p">In Laravel, routing is the entry point of the application that defines the response logic when a client requests a specific URI. The route maps the URL to the corresponding processing code, which usually contains HTTP methods, URIs, and actions (closures or controller methods). 1. Basic structure of route definition: bind requests using Route::verb('/uri',action); 2. Supports multiple HTTP verbs such as GET, POST, PUT, etc.; 3. Dynamic parameters can be defined through {param} and data can be passed; 4. Routes can be named to generate URLs or redirects; 5. Use grouping functions to uniformly add prefixes, middleware and other sharing settings; 6. Routing files are divided into web.php, ap according to their purpose</p>
        							</div>
        														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
        								<a href="http://www.miracleart.cn/faq/1796819999.html" title="How do I run tests in Laravel? (php artisan test)" class="phphistorical_Version2_mids_img">
        									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/174974412363783.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How do I run tests in Laravel? (php artisan test)" />
        								</a>
        								<a href="http://www.miracleart.cn/faq/1796819999.html" title="How do I run tests in Laravel? (php artisan test)" class="phphistorical_Version2_mids_title">How do I run tests in Laravel? (php artisan test)</a>
        								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 13, 2025 am	 12:02 AM</span>
        								<p class="Articlelist_txts_p">ToruntestsinLaraveleffectively,usethephpartisantestcommandwhichsimplifiesPHPUnitusage.1.Setupa.env.testingfileandconfigurephpunit.xmltouseatestdatabaselikeSQLite.2.Generatetestfilesusingphpartisanmake:test,using--unitforunittests.3.Writetestswithmeth</p>
        							</div>
        														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
        								<a href="http://www.miracleart.cn/faq/1796820270.html" title="What is the purpose of the artisan command-line tool in Laravel?" class="phphistorical_Version2_mids_img">
        									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/174978463144432.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What is the purpose of the artisan command-line tool in Laravel?" />
        								</a>
        								<a href="http://www.miracleart.cn/faq/1796820270.html" title="What is the purpose of the artisan command-line tool in Laravel?" class="phphistorical_Version2_mids_title">What is the purpose of the artisan command-line tool in Laravel?</a>
        								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 13, 2025 am	 11:17 AM</span>
        								<p class="Articlelist_txts_p">Artisan is a command line tool of Laravel to improve development efficiency. Its core functions include: 1. Generate code structures, such as controllers, models, etc., and automatically create files through make: controller and other commands; 2. Manage database migration and fill, use migrate to run migration, and db:seed to fill data; 3. Support custom commands, such as make:command creation command class to implement business logic encapsulation; 4. Provide debugging and environment management functions, such as key:generate to generate keys, and serve to start the development server. Proficiency in using Artisan can significantly improve Laravel development efficiency.</p>
        							</div>
        														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
        								<a href="http://www.miracleart.cn/faq/1796822081.html" title="What are controllers in Laravel, and what is their purpose?" class="phphistorical_Version2_mids_img">
        									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175035071269793.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What are controllers in Laravel, and what is their purpose?" />
        								</a>
        								<a href="http://www.miracleart.cn/faq/1796822081.html" title="What are controllers in Laravel, and what is their purpose?" class="phphistorical_Version2_mids_title">What are controllers in Laravel, and what is their purpose?</a>
        								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 20, 2025 am	 12:31 AM</span>
        								<p class="Articlelist_txts_p">The main role of the controller in Laravel is to process HTTP requests and return responses to keep the code neat and maintainable. By concentrating the relevant request logic into a class, the controller makes the routing file simpler, such as putting user profile display, editing and deletion operations in different methods of UserController. The creation of a controller can be implemented through the Artisan command phpartisanmake:controllerUserController, while the resource controller is generated using the --resource option, covering methods for standard CRUD operations. Then you need to bind the controller in the route, such as Route::get('/user/{id</p>
        							</div>
        														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
        								<a href="http://www.miracleart.cn/faq/1796819928.html" title="How do I start the Laravel development server? (php artisan serve)" class="phphistorical_Version2_mids_img">
        									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/174972799255284.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How do I start the Laravel development server? (php artisan serve)" />
        								</a>
        								<a href="http://www.miracleart.cn/faq/1796819928.html" title="How do I start the Laravel development server? (php artisan serve)" class="phphistorical_Version2_mids_title">How do I start the Laravel development server? (php artisan serve)</a>
        								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 12, 2025 pm	 07:33 PM</span>
        								<p class="Articlelist_txts_p">To start the Laravel development server, use the command phpartisanserve, which is provided at http://127.0.0.1:8000 by default. 1. Make sure that the terminal is located in the project root directory containing the artisan file. If it is not in the correct path, use cdyour-project-folder to switch; 2. Run the command and check for errors. If PHP is not installed, the port is occupied or file permissions are problematic, you can specify different ports such as phpartisanserve--port=8080; 3. Visit http://127.0.0.1:8000 in the browser to view the application homepage. If it cannot be loaded, please confirm the port number, firewall settings or try.</p>
        							</div>
        														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
        								<a href="http://www.miracleart.cn/faq/1796823123.html" title="How do I use Laravel's validation system to validate form data?" class="phphistorical_Version2_mids_img">
        									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175057975235355.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How do I use Laravel's validation system to validate form data?" />
        								</a>
        								<a href="http://www.miracleart.cn/faq/1796823123.html" title="How do I use Laravel's validation system to validate form data?" class="phphistorical_Version2_mids_title">How do I use Laravel's validation system to validate form data?</a>
        								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 22, 2025 pm	 04:09 PM</span>
        								<p class="Articlelist_txts_p">Laravelprovidesrobusttoolsforvalidatingformdata.1.Basicvalidationcanbedoneusingthevalidate()methodincontrollers,ensuringfieldsmeetcriterialikerequired,maxlength,oruniquevalues.2.Forcomplexscenarios,formrequestsencapsulatevalidationlogicintodedicatedc</p>
        							</div>
        														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
        								<a href="http://www.miracleart.cn/faq/1796825599.html" title="Caching Strategies | Optimizing Laravel Performance" class="phphistorical_Version2_mids_img">
        									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
        										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/000/000/083/685e6da455e30895.png?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Caching Strategies | Optimizing Laravel Performance" />
        								</a>
        								<a href="http://www.miracleart.cn/faq/1796825599.html" title="Caching Strategies | Optimizing Laravel Performance" class="phphistorical_Version2_mids_title">Caching Strategies | Optimizing Laravel Performance</a>
        								<span id="377j5v51b"    class="Articlelist_txts_time">Jun 27, 2025 pm	 05:41 PM</span>
        								<p class="Articlelist_txts_p">CachinginLaravelsignificantlyimprovesapplicationperformancebyreducingdatabasequeriesandminimizingredundantprocessing.Tousecachingeffectively,followthesesteps:1.Useroutecachingforstaticrouteswithphpartisanroute:cache,idealforpublicpageslike/aboutbutno</p>
        							</div>
        													</div>
        
        													<a href="http://www.miracleart.cn/phpkj/" class="phpgenera_Details_mainL4_botton">
        								<span>See all articles</span>
        								<img src="/static/imghw/down_right.png" alt="" />
        							</a>
        											</div>
        				</div>
        					</div>
        	</main>
        	<footer>
            <div   id="377j5v51b"   class="footer">
                <div   id="377j5v51b"   class="footertop">
                    <img src="/static/imghw/logo.png" alt="">
                    <p>Public welfare online PHP training,Help PHP learners grow quickly!</p>
                </div>
                <div   id="377j5v51b"   class="footermid">
                    <a href="http://www.miracleart.cn/about/us.html">About us</a>
                    <a href="http://www.miracleart.cn/about/disclaimer.html">Disclaimer</a>
                    <a href="http://www.miracleart.cn/update/article_0_1.html">Sitemap</a>
                </div>
                <div   id="377j5v51b"   class="footerbottom">
                    <p>
                        ? php.cn All rights reserved
                    </p>
                </div>
            </div>
        </footer>
        
        <input type="hidden" id="verifycode" value="/captcha.html">
        
        
        
        
        		<link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all' />
        	
        	
        	
        	
        	
        
        	
        	
        
        
        
        
        
        
        <footer>
        <div class="friendship-link">
        <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p>
        <a href="http://www.miracleart.cn/" title="国产av日韩一区二区三区精品">国产av日韩一区二区三区精品</a>
        
        <div class="friend-links">
        
        
        </div>
        </div>
        
        </footer>
        
        
        <script>
        (function(){
            var bp = document.createElement('script');
            var curProtocol = window.location.protocol.split(':')[0];
            if (curProtocol === 'https') {
                bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
            }
            else {
                bp.src = 'http://push.zhanzhang.baidu.com/push.js';
            }
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(bp, s);
        })();
        </script>
        </body><div id="ki0aa" class="pl_css_ganrao" style="display: none;"><tr id="ki0aa"></tr><tr id="ki0aa"></tr><em id="ki0aa"></em><abbr id="ki0aa"></abbr><option id="ki0aa"></option><noframes id="ki0aa"><source id="ki0aa"><tr id="ki0aa"></tr></source></noframes><em id="ki0aa"><optgroup id="ki0aa"><sup id="ki0aa"></sup></optgroup></em><pre id="ki0aa"></pre><code id="ki0aa"><wbr id="ki0aa"><pre id="ki0aa"></pre></wbr></code><bdo id="ki0aa"></bdo><rt id="ki0aa"></rt><center id="ki0aa"><input id="ki0aa"><blockquote id="ki0aa"></blockquote></input></center><input id="ki0aa"><pre id="ki0aa"><noframes id="ki0aa"></noframes></pre></input><source id="ki0aa"></source><dd id="ki0aa"><tbody id="ki0aa"><s id="ki0aa"></s></tbody></dd><cite id="ki0aa"></cite><ul id="ki0aa"></ul><menu id="ki0aa"></menu><dl id="ki0aa"></dl><tr id="ki0aa"></tr><table id="ki0aa"></table><tbody id="ki0aa"></tbody><tfoot id="ki0aa"></tfoot><noframes id="ki0aa"></noframes><small id="ki0aa"></small><kbd id="ki0aa"></kbd><fieldset id="ki0aa"></fieldset><input id="ki0aa"></input><dd id="ki0aa"><tbody id="ki0aa"><tfoot id="ki0aa"></tfoot></tbody></dd><tbody id="ki0aa"></tbody><tbody id="ki0aa"><strong id="ki0aa"><ul id="ki0aa"></ul></strong></tbody><kbd id="ki0aa"><abbr id="ki0aa"><strike id="ki0aa"></strike></abbr></kbd><dl id="ki0aa"></dl><source id="ki0aa"><sup id="ki0aa"><fieldset id="ki0aa"></fieldset></sup></source><tfoot id="ki0aa"><del id="ki0aa"><cite id="ki0aa"></cite></del></tfoot><center id="ki0aa"><tbody id="ki0aa"><strike id="ki0aa"></strike></tbody></center><source id="ki0aa"></source><tr id="ki0aa"></tr><pre id="ki0aa"></pre><option id="ki0aa"></option><s id="ki0aa"></s><small id="ki0aa"><source id="ki0aa"><tr id="ki0aa"></tr></source></small><acronym id="ki0aa"><menu id="ki0aa"><rt id="ki0aa"></rt></menu></acronym><fieldset id="ki0aa"></fieldset><code id="ki0aa"><dd id="ki0aa"><pre id="ki0aa"></pre></dd></code><rt id="ki0aa"><pre id="ki0aa"><nav id="ki0aa"></nav></pre></rt><th id="ki0aa"></th><strike id="ki0aa"><option id="ki0aa"><source id="ki0aa"></source></option></strike><th id="ki0aa"></th><sup id="ki0aa"><optgroup id="ki0aa"><xmp id="ki0aa"></xmp></optgroup></sup><center id="ki0aa"><xmp id="ki0aa"><small id="ki0aa"></small></xmp></center><samp id="ki0aa"></samp><ul id="ki0aa"></ul><tr id="ki0aa"><menu id="ki0aa"><samp id="ki0aa"></samp></menu></tr><button id="ki0aa"></button><tbody id="ki0aa"></tbody><samp id="ki0aa"></samp><source id="ki0aa"><acronym id="ki0aa"><small id="ki0aa"></small></acronym></source><td id="ki0aa"></td><s id="ki0aa"></s><em id="ki0aa"></em><em id="ki0aa"></em><tr id="ki0aa"></tr><tr id="ki0aa"><u id="ki0aa"></u></tr><del id="ki0aa"><center id="ki0aa"></center></del><span id="ki0aa"><pre id="ki0aa"></pre></span><optgroup id="ki0aa"><label id="ki0aa"><strong id="ki0aa"></strong></label></optgroup><ul id="ki0aa"><small id="ki0aa"><dfn id="ki0aa"><label id="ki0aa"></label></dfn></small></ul><blockquote id="ki0aa"></blockquote><tbody id="ki0aa"></tbody><meter id="ki0aa"></meter><option id="ki0aa"><rp id="ki0aa"><listing id="ki0aa"></listing></rp></option><object id="ki0aa"><acronym id="ki0aa"><pre id="ki0aa"><tbody id="ki0aa"></tbody></pre></acronym></object><meter id="ki0aa"><samp id="ki0aa"><delect id="ki0aa"><small id="ki0aa"></small></delect></samp></meter><option id="ki0aa"></option><th id="ki0aa"><tr id="ki0aa"><optgroup id="ki0aa"></optgroup></tr></th><sub id="ki0aa"><center id="ki0aa"><acronym id="ki0aa"><ruby id="ki0aa"></ruby></acronym></center></sub><legend id="ki0aa"></legend><thead id="ki0aa"><acronym id="ki0aa"></acronym></thead><sub id="ki0aa"></sub><source id="ki0aa"><wbr id="ki0aa"><blockquote id="ki0aa"></blockquote></wbr></source><abbr id="ki0aa"><listing id="ki0aa"><tbody id="ki0aa"><cite id="ki0aa"></cite></tbody></listing></abbr><abbr id="ki0aa"></abbr><strike id="ki0aa"></strike><kbd id="ki0aa"></kbd><fieldset id="ki0aa"></fieldset><dl id="ki0aa"></dl><kbd id="ki0aa"><cite id="ki0aa"><blockquote id="ki0aa"></blockquote></cite></kbd><strong id="ki0aa"></strong><dfn id="ki0aa"></dfn><button id="ki0aa"></button><center id="ki0aa"></center><strong id="ki0aa"></strong><wbr id="ki0aa"></wbr><tbody id="ki0aa"></tbody><bdo id="ki0aa"></bdo><xmp id="ki0aa"></xmp></div>
        
        </html>