Topic View
This commit is contained in:
		
							
								
								
									
										22
									
								
								app/Http/Controllers/TopicsController.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								app/Http/Controllers/TopicsController.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace App\Http\Controllers;
 | 
			
		||||
 | 
			
		||||
use Illuminate\Http\Request;
 | 
			
		||||
use App\Topic;
 | 
			
		||||
 | 
			
		||||
class TopicsController extends Controller
 | 
			
		||||
{    
 | 
			
		||||
    /**
 | 
			
		||||
     *  Load a single Topic view
 | 
			
		||||
     *
 | 
			
		||||
     * @param  mixed $topic
 | 
			
		||||
     * @return void
 | 
			
		||||
     */
 | 
			
		||||
    public function show(Topic $topic)
 | 
			
		||||
    {
 | 
			
		||||
        return view('topics.show', [
 | 
			
		||||
            'topic' => $topic->load('articles')
 | 
			
		||||
        ]);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user