This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// controller | |
if( $validator->fails() ) { | |
return response()->json( $validator->errors()->fails(), 200 ); | |
} else { | |
return response()->json( [ | |
'success' => 'true', | |
'message' => 'Contato enviado com sucesso!' | |
], 200); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array | |
( | |
[left] => | |
[center] => Array | |
( | |
[user_id] => 5 | |
[name] => Leo Turner | |
[username] => ayla.zemlak | |
[email] => [email protected] | |
[sponsor] => 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
php_value allow_url_fopen On | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
# Redirect Trailing Slashes If Not A Folder... | |
RewriteCond %{REQUEST_FILENAME} !-d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Services; | |
use App\User; | |
class NetWorkService { | |
public function getUsers( $sponsor ) | |
{ | |
$users = User::where('sponsor', 'LIKE', '%' . $sponsor . '%')->get(); | |
foreach($users->toArray() as $user) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; | |
class Post extends Controller | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Fonix\Products\Models; | |
use App; | |
use Str; | |
use Html; | |
use Lang; | |
use Model; | |
use Markdown; | |
use ValidationException; | |
use Fonix\Products\Classes\TagProcessor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function() | |
{ | |
Route::get('/', 'Admin\DashboardController@index'); | |
Route::get('dashboard', 'Admin\DashboardController@index'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// file: app/Helpers/Admin/Aside.php | |
namespace App\Helpers\Admin; | |
use Route; | |
Class Aside { | |
public function __construct() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Wp Theme | |
Author: Felipe Rank | |
Author URI: https://raank.github.io/ | |
Description: Tema básico para wordpress | |
Version: 1.0.0 | |
*/ |