jrean

Member Since 5 Years Ago

Bali

Experience Points 34,675
Experience Level 7

325 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 244
Lessons
Completed
Best Reply Awards 22
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

15 Sep
10 months ago

jrean left a reply on Php Artisan Route:list Returns Error

@bobbybouwmann 2 years later.. You made my day! Thank you :-)

20 Apr
2 years ago

jrean left a reply on Laravel User Verification

@aurawindsurfing thank you :-) @eleazarbr please join us on github and open an issue if you want to get some help.

https://github.com/jrean/laravel-user-verification

22 Jan
2 years ago

jrean left a reply on Manual Pagination In Laravel 5.1

@dmsone97 it was already mentioned into my comment:

public function index()
{
        $articles = $this
            ->paginate($this->foo->getArticles())
            ->setPath('articles');
}

But of course you can directly apply into the custom paginate() method. Your taste, your way :-)

21 Dec
2 years ago

jrean started a new conversation Company, Categories, Subcategories

Hi,

In a few words I'm trying to understand the best way of fetching the CATEGORIES of a Company based on its SUBCATEGORIES.

  • company: id ; name
  • categories: id ; name
  • subcategories: id ; category_id ; name
  • company_subcategory: company_id ; subcategory_id

A company has 1-many subcategories which is related to 1 category...

I thought I will be able to use the has many through relation but it doesn't work.

I implemented the following:

        $company = $this->company->withSubcategories()->findOrFail($id);
    /**
     * Eager load the subcategory(ies).
     *
     * @return self
     */
    public function scopeWithSubcategories()
    {
        return $this->addScopeQuery(function($query) {
            return $query->with('subcategories');
        });
    }
    /**
     * Get the subcategory(ies) associated with the given company.
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
     */
    public function subcategories()
    {
        return $this->belongsToMany(Subcategory::class, 'company_subcategory')
                    ->withTimestamps();
    }

So in my Company model I'm trying to understand how/what kind of relation I should implement to be able to get the CATEGORIES knowing they are accessible through the SUBCATEGORIES.

Is my table structure wrong?

Thank you.

01 Nov
2 years ago

jrean started a new conversation 5.3 + Webpack

Hi,

I'm being a little bit confused by 5.3 + webpack way of working. In previous Laravel releases, I used to require JS packages with npm / bower / yarn then work with Elixir to concatenate files into a single final file within my gulpfile.js file. Great!

With Laravel 5.3 I discovered the "new" assets/js/app.js and assets/js/bootstrap.js files. Great First, I tried with a JS package called "vegas". I did a yarn add vegas and the package has been downloaded into node_modules. Then I added into the assets/js/bootstrap.js a require('vegas'); and I added the package configuration into theassets/js/app.js`. It works great.

I concluded that instead of listing all my JS packages files into my gulpfile.js file I know do it into the assets/js/bootstrap.fs file.

I tried with another package jquery.dotdotdot. I added it with yarn, I updated my assets/js/bootstrap.js file with require('jquery.dotdotdot'); BUT this time it doesn't work. I checked the final .js file and I can see the package is within it but it doesn't work.

Am I doing something wrong? Am I misunderstanding how to load JS package with Laravel 5.3? Is that a good practice to not use anymore the gulpfile.js to concatenate JS file? I only use it for CSS (not sass).

Please help.

Thank you

28 Aug
2 years ago

jrean started a new conversation Ajax Post Headers CORS

Hi,

I admit, it's a pain in the ass to me. I did a lot of searches but I still try to understand how to handle such a "simple" thing by hand.

I have created a form on a third party service website. This service allow me to add custom JS so I can perform and Ajax request. Great.

<script>
$(document).ready(function() {
    $("#foo-form").submit(function(e) {
        var form = $(this);

        // submitButton.prop('disabled', 'disabled');
        // submitButton.removeAttr('disabled');

        $.ajax({
            type: 'POST',
            url: form.prop('action'),
            data: form.serialize(),
            dataType: 'json'
        }).done(function(data) {
            console.log(data);
        });

        e.preventDefault();
    });
});
</script>

I created a Middleware.

<?php

namespace App\Http\Middleware;

use Closure;

class Cors
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        header('Access-Control-Allow-Origin: https://origin-domain.com');

        $headers = [
            'Access-Control-Allow-Methods' => 'POST, OPTION',
            'Access-Control-Allow-Headers' => 'Content-Type, X-Requested-With, Origin'
        ];

        $response = $next($request);

        foreach($headers as $key => $value) {
            $response->header($key, $value);
        }

        return $response;
    }
}

I understood that because I'm doing a post request from a cross origin, the request will be Preflighted and so I need to set OPTION.

In my controller:

    public function foo(Request $request)
    {
        if ($request->ajax()) {
            return response()->json([
                'status' => 'success',
            ], 200);
        }
}

When I submit the form, it works except that it return null. It means the request is not detected as an Ajax request.

I know it has something to do with the headers but it is beyond my knowledge now.

Request Header

:authority:domain.com
:method:POST
:path:/path
:scheme:https
accept:application/json, text/javascript, */*; q=0.01
accept-encoding:gzip, deflate, br
accept-language:en-US,en;q=0.8
content-length:70
content-type:application/x-www-form-urlencoded; charset=UTF-8
dnt:1
origin:https://origin-domain.com
referer:https://domain.com
user-agent:xxx

Response Header

access-control-allow-headers:Content-Type, X-Requested-With, Origin
access-control-allow-methods:POST, OPTION
access-control-allow-origin:https://origin-domain.com
cache-control:no-cache
content-encoding:gzip
content-type:text/html; charset=UTF-8
date:Sun, 28 Aug 2016 16:19:53 GMT
server:nginx
set-cookie:XSRF-TOKEN=xxx; expires=Sun, 28-Aug-2016 18:19:53 GMT; Max-Age=7200; path=/; domain=domain.com
set-cookie:foo_session=xxx;
expires=Sun, 28-Aug-2016 18:19:53 GMT; Max-Age=7200; path=/; domain=domain.com; HttpOnly
status:200
strict-transport-security:max-age=63072000; includeSubdomains
vary:Accept-Encoding
x-content-type-options:nosniff
x-frame-options:DENY

Can you please help me and give me some light. Thank you!

jrean left a reply on Composer Installed Laravel 5.2 Instead Of Laravel 5.3

@seyedrahjoo it should not do that... Try to update your composer composer selfupdate ; maybe cache...

You can also try that...

composer create-project --prefer-dist laravel/laravel=5.3.* blog

Then

composer update

17 Jun
3 years ago

jrean left a reply on Laravel User Verification

@FilipLaracasts thank you for your feedback.

You can create a middleware that will simply test:

if ($user->verified) {
// allow the request
}

// else, it means it is not (yet) verified
// you could, for instance, display a view and offer to regenerate and resend a verification token...

Then you register the middleware on the routes you want.

Hope it will help you

15 Jun
3 years ago

jrean left a reply on Elixir / Gulp Watch Endless Loop

Here is how I ended:

mix.sass('app.scss');
    mix.sass('dashmin.scss');

    // Libraries
   // We keep track of the file alone mainly because of the css map "issue" I encounter
   // https://github.com/laravel/elixir/issues/497
    mix.styles([
        'node_modules/1.css',
        'node_modules/2.css',
        'node_modules/3.css',
        'bower_components/4.css',
        'bower_components/5.css',
    ], 'public/css/libs.css', './');

    // Final file
    // We build the final file
    mix.styles([
        'node_modules/1.css',
        'node_modules/2.css',
        'node_modules/3.css',
        'bower_components/4.css',
        'bower_components/5.css',
        'public/css/app.css'
    ], 'public/css/min.css', './');

jrean left a reply on Elixir / Gulp Watch Endless Loop

@clay thank you. Can you please give me some more details because I just don't understand the thing!

  • I compile app.scss
  • I compile dashmin.scss
  • I mix 5 css style sheets into 1 libs.css
  • I mix 2 css style sheets (the compiled and the result of the previous mix) into 1 min.css

I just don't understand what's wrong with that. I thought mix.styles and mix.scrypts are here to mix several files into one! I'm wrong?

jrean left a reply on Elixir / Gulp Watch Endless Loop

I found where the glitch happen but I don't understand:

The following code works (no loop when gulp watch)

    mix.sass('app.scss');
    mix.sass('dashmin.scss');

    mix.styles([
        'node_modules/1.css',
        'node_modules/2.css',
        'node_modules/3.css',
        'bower_components/4.css',
        'bower_components/5.css'
        'public/css/app.css' // <= I directly mix my main sheet with my libs
    ], 'public/css/min.css', './');

But in reality I want to add an extra step as follow but it doesn't work:

    mix.sass('app.scss');
    mix.sass('dashmin.scss');

    mix.styles([
         'node_modules/1.css',
        'node_modules/2.css',
        'node_modules/3.css',
        'bower_components/4.css',
        'bower_components/5.css'
    ], 'public/css/libs.css', './'); // <= LIBS so I can get just access to libs.css

// Then
    mix.styles([
        'public/css/app.css',
        'public/css/libs.css'
    ], 'public/css/min.css', './');

So this last will make gulp watch looping.

Can you please help to understand?

Thank you

jrean left a reply on Elixir / Gulp Watch Endless Loop

It seems gulp watch is watching into public/css => [BS] File changed: public/css/app.css. How that is possible!? @JeffreyWay ?

jrean left a reply on Elixir / Gulp Watch Endless Loop

@d3xt3r thank you but unfortunately it doesn't change anything. Here is what I did to follow your instruction and it still goes into an endless loop. Please help

var elixir = require('laravel-elixir');

elixir(function(mix) {
    
    mix.sass([
        'app.scss',
    ], 'resources/pre-build/front.css')

    mix.sass([
        'dashmin.scss',
    ], 'resources/pre-build/back.css')

    mix.styles([
        'node_modules/1.css',
        'node_modules/2.css',
        'node_modules/3.css',
        'bower_components/4.css',
        'bower_components/5.css'
    ], 'resources/pre-build/bundles.css', './');

 
    mix.styles([
        'resources/pre-build/bundles.css',
        'resources/pre-build/front.css'
    ], 'public/css/app.css', './');

});

jrean started a new conversation Elixir / Gulp Watch Endless Loop

Hi,

var elixir = require('laravel-elixir');

elixir(function(mix) {

    // Compile the front
    mix.sass([
        'app.scss',
    ], 'resources/assets/pre-build/front.css')

    // Compile the back
    mix.sass([
        'dashmin.scss',
    ], 'resources/assets/pre-build/back.css')

    // Compile libraries
    mix.styles([
        'node_modules/1.css',
        'node_modules/2.css',
        'node_modules/2.css',
        'bower_components/4.css',
        'bower_components/5.css'
    ], 'resources/assets/pre-build/bundles.css', './');

    // Mix to get one unified file
    mix.styles([
        'resources/assets/pre-build/bundles.css',
        'resources/assets/pre-build/front.css'
    ], 'public/css/app.css', './');

I become crazy because as soon as I launch gulp watch and modify my sass file it goes into an endless loop.

  • What do I miss?
  • Another question, how do you configure elixir to tell what to watch?

Please help me

14 Jun
3 years ago

jrean left a reply on Build Strategy

Thank you @bobbybouwmann. That sounds a great way of doing. I work alone on this project so I directly push to a --bare repository on the server.

So, if I properly understood you suggest:

  • Feature branch
  • Merge to master
  • Compile build & Co.
  • Tag a release
  • Push master (tag) to Github / or server

Then I use git hooks to perform my deploy strategy and some additional tasks...

Thxs

jrean started a new conversation Build Strategy

Hi guys,

Can I have some feedback about what is the best approach?

  • Build assets locally (gulp production & Co.) then push and deploy
  • Push, build on the remote and then deploy

Locally / remotely?

Do you have some readings to share?

Cheers,

jrean left a reply on Email Verification In Laravel And Spark

@kornel please come to discuss on the github repository issue section. I think you are using it with an authenticated user and so you need to update the __construc() with the proper middleware declaration. Check the documentation. It has been recently updated.

06 Jun
3 years ago

jrean left a reply on Email Verification In Laravel And Spark

What do you mean @dunas? I wrote it. Give it a try if you can. Your feedback is more than welcome.

04 Jun
3 years ago

jrean left a reply on Laravel Can Not Open SQLite Database

@vlehnen is your sqlite db is within the database directory? (and not storage)

jrean left a reply on Manual Pagination In Laravel 5.1

@IamCrazyD you can do something like that into a controller or anywhere you want to use it...

use Illuminate\Pagination\LengthAwarePaginator;

/**
     * Create a length aware custom paginator instance.
     *
     * @param  Collection  $items
     * @param  int  $perPage
     * @return \Illuminate\Pagination\LengthAwarePaginator
     */
    protected function paginate($items, $perPage = 12)
    {
        //Get current page form url e.g. &page=1
        $currentPage = LengthAwarePaginator::resolveCurrentPage();

        //Slice the collection to get the items to display in current page
        $currentPageItems = $items->slice(($currentPage - 1) * $perPage, $perPage);

        //Create our paginator and pass it to the view
        return new LengthAwarePaginator($currentPageItems, count($items), $perPage);
    }


    public function index()
{
        $articles = $this
            ->paginate($this->foo->getArticles())
            ->setPath('articles');
}

It's just to give you the idea.

jrean left a reply on Email Verification In Laravel And Spark

I'm asking myself the same question @dunas There is this package if it may help someone.

https://github.com/jrean/laravel-user-verification

jrean left a reply on Email Verification

I wrote this package if it may help someone

https://github.com/jrean/laravel-user-verification

27 May
3 years ago

jrean started a new conversation Add Relationship Subquery Count

Hi,

I just want to share something awesome now included into Laravel!

https://github.com/laravel/framework/pull/13414

User::withCount('comments')->find($id));

Article::withCount(['comments' => function($query) {
    $query->where('published_at', '>=', Carbon::now());
}])->get()

...

I'm sure it will make a lot of us (very) happy!

Cheers

13 May
3 years ago

jrean left a reply on Relation Design Best Practice

Hey Nick,

Thanks a lot for your reply. I just notice I did a mistake into my first post.

Paperboy [id ; name ; age ; timestamps] (Record paperboys)

Magazine [id ; name ; type ; timestamps] (Record magazines)

Magazine_Paperboy [id ; magazine_id ; paperboy_id ; points ; target ; bonus ; timestamps] (Record contracts between a paperboy and a magazine and define some addition information such as amount of points, delivery target number and bonus (points) if target is passed)

So know I need a fourth table that will track every delivery right? Delivery [id ; paperboy_id ; magazine_id ; timestamp]

Question: how is the best way to represent this fourth table? What do you think?

Thxs again.

jrean started a new conversation Relation Design Best Practice

Hi,

Practicing and trying to find the best way of designing something like that (a little game):

Paperboy | Magazine | Distribution

A paperboy can have contracts with several Magazines. Every time the paperboy distributes a magazine he receives a certain amount of point(s) based on the magazine conditions.

Paperboy [id ; name] Magazine [id ; name] Magazine_Paperboy [id ; magazine_id ; paperboy_id ; points]

My question: I would like a third table (model?) that will track each delivery. So basically a paperboy will deliver a magazine and will be credited some points based on the contract he has with that magazine (Magazine_Paperboy relation)

How do you represent that?

  • A table (model?) Delivery [id ; magazine_id ; paperbody_id] and then you go into the Magazine_Paperboy to get the number of points for that delivery?
  • A clever way through eloquent magic?

I'm confused.

Thanks for the help.

05 May
3 years ago

jrean started a new conversation Assets Mgt Workflow

Hi,

I have some questions.

https://github.com/laravel/laravel/blob/master/package.json

By default now:

https://github.com/laravel/laravel/blob/master/.gitignore

/vendor
/node_modules
/public/storage
Homestead.yaml
Homestead.json
.env

/node_modules are not tracked.

Then:

{
  "private": true,
  "scripts": {
    "prod": "gulp --production",
    "dev": "gulp watch"
  },
  "devDependencies": {
    "gulp": "^3.9.1",
    "laravel-elixir": "^5.0.0",
    "bootstrap-sass": "^3.3.0"
  }
}

Gulp, Laravel-elixir and bootstrap-sass are required as devDependencies.

According to the last commit, comments, the correct workflow should be to build everything "localy" and then send to production.

I would like to understand how to perform this workflow as a best practice (the steps if you can share). Usually, I have my dev env, then a test env, then a prod env. From my dev env I push to my test env (where I have to install/update the packages), then from my test env, I push to my prod env where I have to install/update the packages and run the build process...

I'm confused.

Thank you for the help.

09 Apr
3 years ago

jrean left a reply on Get An Item Out Of A Collection

Prez, you did push in the right direction. Thank you! :)

I came with that

        $tagName = $tagsList->where('slug', $tag)->first()['name'];

Which is exactly what you suggested.

Thank you very much.

jrean left a reply on Get An Item Out Of A Collection

Nope.

If I use where() I should use the following: $collection->where('slug', 'foo-bar');

It returns

Collection {#176 
  #items: array:1 [
    1 => array:2 [
      "name" => "foo bar"
      "slug" => "foo-bar"
    ]
  ]
}

I want to find the best and direct way to get out the foo bar value which is the name for the slug => foo-bar.

jrean started a new conversation Get An Item Out Of A Collection

Hi,

        $collection = new Collection([
            [
                'name' => 'foo bar',
                'slug' => 'foo-bar'
            ],
            [
                'name' => 'foo baz,
                'slug' => 'foo-baz'
            ]
        ]);

It drives me nuts. What is the best/smartest way to do the following:

Into the collection, return the name value of the item where slug is foo-bar

Thank you

jrean left a reply on Best Way To Schedule Task As Per User's Timezone

I did the same. UTC + store user timezone. Then I massively used Carbon for all the calculations

29 Mar
3 years ago

jrean left a reply on Laravel User Verification

@jlrdw thank you.

It works the Laravel way. The same way you can configure the redirects for authentication and registration.

https://github.com/jrean/laravel-user-verification/blob/master/src/Traits/RedirectsUsers.php

This is the second trait which is used by the main trait:

https://github.com/jrean/laravel-user-verification/blob/master/src/Traits/VerifiesUsers.php

So you can just define the following properties (paths):

redirectIfVerified

redirectAfterTokenGeneration

redirectAfterVerification

redirectIfVerificationFails

In the package example I call the trait in the app\Http\Controller\Auth\AuthController.php so this is where you can extend / override the package but you are totally free to use another controller and to define the proper route instead of:

Route::get('verification/error', 'Auth\AuthController@getVerificationError');
Route::get('verification/{token}', 'Auth\AuthController@getVerification');

I hope this will help. I will update the documentation to make it more clear.

jrean started a new conversation Laravel User Verification

Hi, I wrote this package for Laravel 5.* to easily handle a user verification flow and validate e-mail. May I ask you some feedback? https://github.com/jrean/laravel-user-verification Cheers,

09 Mar
3 years ago

jrean left a reply on Class Log Does Not Exist

Double quotes! Made my day. Thxs

20 Sep
3 years ago

jrean left a reply on Session Key Destroyed (L5.1)

@johnnemo when you close the browser you also loose the "remember me" in session user?

19 Sep
3 years ago

jrean left a reply on Get All Connected Users With Session

@Amelie89 can you copy/paste the exception please?

18 Sep
3 years ago

jrean left a reply on Authentication Problem

@fala70 after the Auth::attempt() do you perform a redirect or return something? You should, it is at this point that the session will be set and the user available trough auth()->user() for instance.

jrean started a new conversation Laravel User Verification - First Package

Hi,

I created my first Laravel package. May I ask for some reviews?

https://github.com/jrean/laravel-user-verification

It's a PHP package built for Laravel 5 to easily handle a user verification flow and validate its email.

  • Generate and store a verification token for a registered and authenticated user.
  • Send an email with the verification token link.
  • Handle the verification.
  • Set the user as verified.

I plan to add unit tests and for sure to refactor the code after your comments.

What do you think?

Thank you.

16 Sep
3 years ago

jrean left a reply on Authentication And Register Behaviour

@phildawson thank you very much! You have a great Knowledge public API :D

jrean left a reply on Middleware Parameters From Controller Constructor

@haakym

    /**
     * ..
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('guest', ['except' => ['XXX', 'XXX']]);
    }

jrean left a reply on Authentication And Register Behaviour

@phildawson thank you! I guess you had coffee :D

I understand the logic but I don't understand the following:

public function postRegister(Request $request)
    {
        $validator = $this->validator($request->all());
        if ($validator->fails()) {
            $this->throwValidationException(
                $request, $validator
            );
        }
        Auth::login($this->create($request->all()));

        dd(auth()->user()); // <-- HERE

        return redirect($this->redirectPath());
    }

It outputs:

User {#173 ▼
  ...
  #attributes: array:6 [▼
    "name" => "jean"
    "email" => "foo@bar.com"
    "password" => "xxx"
    "updated_at" => "2015-09-14 03:10:12"
    "created_at" => "2015-09-14 03:10:12"
    "id" => 17
  ]

How the dd(auth()->user()); // <-- HERE can return the authenticated user whereas the redirect didn't happen yet!?

  • If I just accept "this is like that don't try to understand" why it is not returning the foo and bar attributes?

jrean left a reply on Artisan Route:list Shows Error

@robindboer copy your route files, delete everything and run the command again to see if you still have the error.

A simple typo in the routes file may lead to an error with the php artisan route:list command.

jrean left a reply on Artisan Route:list Shows Error

You have the error only for that command or also if you run php artisan?

jrean left a reply on Authentication And Register Behaviour

@MThomas yep, but even hidden it returns me:

User {#161 ▼
...
  #attributes: array:9 [▼
    "id" => "19"
    "name" => "jean"
    "email" => "foo@bar.com"
    "password" => "xxx"
    "remember_token" => null
    "created_at" => "2015-09-14 03:22:59"
    "updated_at" => "2015-09-14 03:22:59"
    "foo" => "0"
    "bar" => null
  ]

I'm trying to understand why I can't have the foo and bar returned in the register method. On Github Graham asked me to ask on forums :)

jrean left a reply on Handling "active" Menu Item In L5

@Ishatanjeeb don't use this solution!

Or at least create a helpers.php file and build your own little function that will wrap what @bobbybouwmann shared or use the package I mentioned.

Passing the request object from your controller is just not a good practice at all.

jrean left a reply on Authentication And Register Behaviour

Someone please?

jrean left a reply on Test Attributes/columns Existence

Thank you @loshMiS.

I managed it with :

Schema::hasColumn($model->getTable(), $column);