Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

laravel exists rule

<?php
 
namespace AppHttpControllers;
 
use AppHttpControllersController;
use IlluminateHttpRequest;
 
class PostController extends Controller
{
    /**
     * Show the form to create a new blog post.
     *
     * @return IlluminateViewView
     */
    public function create()
    {
        return view('post.create');
    }
 
    /**
     * Store a new blog post.
     *
     * @param  IlluminateHttpRequest  $request
     * @return IlluminateHttpResponse
     */
    public function testStore(Request $request)
    {
        // Validate and store the blog post...
    }
}
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #exists #rule
ADD COMMENT
Topic
Name
5+2 =