Skip to content

Instantly share code, notes, and snippets.

View aelfannir's full-sized avatar

ABDERRAHMANE ELFANNIR aelfannir

View GitHub Profile
@aelfannir
aelfannir / Role.php
Created March 22, 2022 15:14
User, Role, Route
<?php
declare(strict_types=1);
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiFilter;
use ApiPlatform\Core\Annotation\ApiResource;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
use App\Entity\Classes\Group;
use App\Entity\Traits\HasId;
<?php
//...
class Dci
{
/**
* @Groups("dcis:read", "dcis:write", "medicaments:write")
* @ORM\ManyToMany(targetEntity=Medicament::class, inversedBy="dcis", cascade={"persist"})
*
*/
private $dci;
@aelfannir
aelfannir / 1. User.php
Last active December 22, 2020 08:10
User Role managment
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
/**
* Class User
* @package App
*/
@aelfannir
aelfannir / ReadMe.md
Last active August 3, 2019 10:53
Example of remote Typeahead.js

Requirement

  • typeahead.js
  • Bloodhound.js
  • Handlebars.js