Here we have used data-type instead of data-id. However we can use anything other than this.Button to click<a href="javascript:void(0)" data-type="31" onclick="demo(this)" >Verify Image</a> ||<a href="javascript:void(0)" data-type="30" onclick="demo(this)" >Unverify Image</a>JavaScript Code<script>function... Read more
Role.php———id, name, status, info User.php———id, name, email, username, mobile, role_id role() =>return $this->belongsTo(Role::class, ‘role_id’, ‘id’); AppServiceProvider.php:————————–boot() =>JsonResource::withoutWrapping(); Make Resource for Both User and Role——————————————php artisan make:resource UserResourcephp artisan make:resource RoleResource... Read more
For eg: we can group frontend and backend part to different file. There are two ways: Method 1: require __DIR__.DIRECTORY_SEPARATOR.'front.php'; Method 2: include('front.php'); Note: Make sure to put all different... Read more
Firstly, let’s talk about the HTTP (HyperText Transfer Protocol). From a quick Google search we get that: HTTP is the underlying protocol used by the World Wide Web and this... Read more