protected function installMenus()
    {
        $file = app_path('menus.php');

        if (!file_exists($file)) {
            $contents = $this->laravel['files']->get(__DIR__.'/stubs/menus.txt');

            $this->laravel['files']->put($file, $contents);

            $this->info("Created : {$file}");
        } else {
            $this->error("File already exists at path : {$file}");
        }
    }
protected function installMenus()
    {
        $file = app_path('menus.php');

        if (!file_exists($file)) {
            $contents = $this->laravel['files']->get(__DIR__.'/stubs/menus.txt');

            $this->laravel['files']->put($file, $contents);

            $this->info("Created : {$file}");
        } else {
            $this->error("File already exists at path : {$file}");
        }
    }
protected function installMenus ( ) { $ file = app_path ( 'menus.php' ) ; if ( ! file_exists ( $ file ) ) { $ contents = $ this -> laravel [ 'files' ] -> get ( __DIR__ . '/stubs/menus.txt' ) ; $ this -> laravel [ 'files' ] -> put ( $ file , $ contents ) ; $ this -> info ( "Created : {$file}" ) ; } else { $ this -> error ( "File already exists at path : {$file}" ) ; } }
Create the menus.php file in app directory if that file does not exist.
Create the menus . php file in app directory if that file does not exist .