@@ -0,0 +1,10 @@
+<?php
+
+namespace App\Http\Controllers;
+class AuthController extends BaseController
+{
+}
@@ -0,0 +1,9 @@
+class BaseController extends Controller
@@ -0,0 +1,12 @@
+namespace App\Models;
+use Illuminate\Database\Eloquent\Model;
+class BaseModel extends Model
+ protected $guarded = ['id'];
+ protected $hidden = ['deleted_at'];
@@ -9,7 +9,7 @@ echo "Restarting LaravelS..."
echo "Starting fswatch..."
LOCKING=0
-fswatch -r -e ".*" -i "\\.php$" ${WORK_DIR} | while read file
+fswatch -e ".*" -i "\\.php$" -m poll_monitor -r ${WORK_DIR} | while read file
do
if [[ ! ${file} =~ .php$ ]] ;then
continue
@@ -16,6 +16,6 @@ $router->get('/', function () use ($router) {
});
-$router->get('/test', function () use ($router) {
- return 'test';
-});
+//add in header Accept:application/vnd.lumen.v1+json
+$api = app('Dingo\Api\Routing\Router');