fadlyshafa

Untitled

Oct 22nd, 2020
95
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. use Illuminate\Support\Facades\Route;
  4.  
  5. use App\Http\Controllers\Url_controller;
  6.  
  7. /*
  8. |--------------------------------------------------------------------------
  9. | Web Routes
  10. |--------------------------------------------------------------------------
  11. |
  12. | Here is where you can register web routes for your application. These
  13. | routes are loaded by the RouteServiceProvider within a group which
  14. | contains the "web" middleware group. Now create something great!
  15. |
  16. */
  17.  
  18. Route::get('/', function () {
  19.     return view('welcome');
  20. });
  21.  
  22. Route::post('/generate-url',[Url_controller::class,'generate']);
  23.  
  24. Route::get('/{kode}',[Url_controller::class,'akses_url']);
  25.  
RAW Paste Data