Skip to content

Instantly share code, notes, and snippets.

View Tjoosten's full-sized avatar
🌏
Somewhere between home and Hogwarts School of Witchcraft and Wizardry

Tim Joosten Tjoosten

🌏
Somewhere between home and Hogwarts School of Witchcraft and Wizardry
  • Polar Youth
  • Antwerp, BE
  • 06:43 (UTC +02:00)
  • X @x0rif
View GitHub Profile
@Tjoosten
Tjoosten / api.php
Created June 22, 2015 20:58
command: curl -H "Content-Type: application/php" -X DELETE http://localhost:8000/api/user/1
/**
* @api {delete} /api/user/{id} Verwijder gebruiker
* @apiGroup Gebruikers
* @apiVersion 1.0.0
* @apiName Deleteuser
*
* @apiParam {integer} id De unieke id van de gebruiker.
*/
public function destroy($id, Request $request)
{
----------------------------------------------------------------------
FILE ERRORS WARNINGS
----------------------------------------------------------------------
/Users/tim/Desktop/irail-work/api/APICall.php 3 1
/Users/tim/Desktop/irail-work/api/connections.php 1 1
/Users/tim/Desktop/irail-work/api/data/DataRoot.php 2 1
/Users/tim/Desktop/irail-work/api/data/DL/tools.php 98 3
...im/Desktop/irail-work/api/data/MIVB/liveboard.php 1 5
...tim/Desktop/irail-work/api/data/MIVB/stations.php 3 3
.../Desktop/irail-work/api/data/NMBS/connections.php 4 26
query:
sql = "SELECT * FROM users WHERE password='"+ req.body.password +"' AND WHERE email='"+ req.body.email +"";
error slack
Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE email='Topairy@gmail.com' at line 1
at Query.Sequence._packetToError (/Users/tim/WebstormProjects/untitled3/node_modules/mysql/lib/protocol/sequences/Sequence.js:48:14)
at Query.ErrorPacket (/Users/tim/WebstormProjects/untitled3/node_modules/mysql/lib/protocol/sequences/Query.js:83:18)
<!DOCTYPE html>
<html lang="nl">
<head>
<title>Contact style scoutnet.</title>
</head>
<style type="text/css">
/* body styling word alleen gebruikt voor de dummy weergave. */
body {
* 70X - Inexcusable
- 701 - Meh
- 702 - Emacs
- 703 - Explosion
- 704 - Goto Fail
- 705 - I wrote the code and missed the necessary validation by an oversight (see 795)
* 71X - Novelty Implementations
- 710 - PHP
- 711 - Convenience Store
- 712 - NoSQL
.leidingitem {
background: none repeat scroll 0 0 #fcfcfc;
border: 1px solid #d7d4cc;
border-radius: 5px;
line-height: 22px;
margin-bottom: 15px;
overflow: auto;
padding: 20px;
width: 100%;
}
<?php
/*
|--------------------------------------------------------------------------
| Application & Route Filters
|--------------------------------------------------------------------------
|
| Below you will find the "before" and "after" events for the application
| which may be used to do any work before or after a request into your
| application. Here you may also register your custom route filters.
|
<ol>
<li> Maandag
<ol>
<li> Cisco </li>
<li> C#
<ul>
<li> Toledo nakijken! </li>
</ul>
</li>
</ol>
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEWE.EEEEEEEEEEEEEEEEEEE 60 / 40355 (0%)
EEEEEEE.EEE.E.EE.E.EEEEEEEEEEEE.EEEEEEEE.EEE.E.EE.E.EEEEEEEE 120 / 40355 (0%)
EEEEEEEEEEEE.EEEEEEEEEE.EEEEEEEEEEEEEEEEEEEEEE.EEEEEEEEEEWE. 180 / 40355 (0%)
EEE.EEEEEEEEEEEEEEEEEE.EEEEEEEEEEEEEEEEEEEE.EEEEEEEEEEEEE... 240 / 40355 (1%)
.EEEEEEEEEEEEEEE.EEEEEEE.EEEEE....EEEEE.EEEEEEE.EEEEEEEE..E. 300 / 40355 (1%)
.EEEEEEE.EEEEEEEEEEEEEEEEEEEEEE.EEE.E.EE.E.EEEEEEEEEEEEEEEEE 360 / 40355 (1%)
E.EEE.EE....EE.EEEEE...........E...................E.E...E.E 420 / 40355 (1%)
E.....E...E.EEEEEEEEEEEEEEWEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 480 / 40355 (1%)
EEE.EEEEEEEEEEEE.E.EE.E.EEEEEEEEEEEEEEEEEEEEEEEEEEWEWEWEEEEE 540 / 40355 (1%)
EEE.EEEEE....EE.EEEEEEEEE.E....E........E.E.E.E...EEEE..EEEE 600 / 40355 (1%)
@Tjoosten
Tjoosten / 01_Laravel 5 Simple ACL manager_Readme.md
Created November 7, 2015 02:35 — forked from amochohan/01_Laravel 5 Simple ACL manager_Readme.md
Laravel 5 Simple ACL - Protect routes by an account / role type

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.

Installation

Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php