Skip to content

Instantly share code, notes, and snippets.

View abdullaadnan's full-sized avatar
🎯
Focusing

Abdulla adnan abdullaadnan

🎯
Focusing
View GitHub Profile

nginx sites-available folder not found

create the sites-available and sites-enabled folder

sudo mkdir /etc/nginx/sites-available
sudo mkdir /etc/nginx/sites-enabled

edit the http block inside /etc/nginx/nginx.conf and add this line

include /etc/nginx/sites-enabled/*;
@abdullaadnan
abdullaadnan / StudentController.php
Created December 6, 2020 13:47
Building and Consuming a RESTful API in Laravel PHP
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Student;
class ApiController extends Controller
{
public function getAllStudents() {