v1.5.14 - Added Allow Actions (Registering)
Fixed User Pictures
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AllowAction extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'action', 'allow'
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\AllowAction;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class AllowActionController extends Controller
|
||||
{
|
||||
function AllowActionRegistering(Request $request) {
|
||||
$action = AllowAction::find($request->id);
|
||||
$action->update([ 'allow' => $request->allow ]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user