messi89

messi89

Member Since 4 Years Ago

Experience Points 3,690
Experience Level 1

1,310 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 20
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

15 Nov
7 months ago

messi89 left a reply on TemporarySignedRoute Throw InvalidSignatureException

@D9705996 - I just update to the 5.7.13 (I was on 5.7.12) but the issue still here

no change on the UrlGenerator.php

you can check my first reply, I already have $absolute on the hasValidSignature method

messi89 left a reply on TemporarySignedRoute Throw InvalidSignatureException

@D9705996 - Yes

the problem is with the absolute variable, it never passed to

public function hasValidSignature(Request $request, $absolute = true)
    {
        //$absolute = false; //if i set it to false the verification works
        $url = $absolute ? $request->url() : '/'.$request->path();

on the ValidateSignature middleware,

if ($request->hasValidSignature()) {
            return $next($request);
        }

        throw new InvalidSignatureException;

messi89 started a new conversation TemporarySignedRoute Throw InvalidSignatureException

Hi guys;

what's wrong with #Laravel #temporarySignedRoute, when I set 'absolute' to 'false', the verification throw an #InvalidSignatureException

1- Invalid Signature

return config('authentication.url').URL::temporarySignedRoute(
            'api.verification.verify', now()->addMinutes(60), ['id' => $notifiable->getKey()], false
        );

2- Signature verified

return URL::temporarySignedRoute(
            'api.verification.verify', now()->addMinutes(60), ['id' => $notifiable->getKey()]
        );

Any idea ?

27 Aug
1 year ago

messi89 left a reply on Passport - Customising Token Response

Hi guys;

I suggest to extends \Laravel\Passport\Http\Controllers\AccessTokenController class and override the issueToken method in your own Controller

Gist: https://gist.github.com/messi89/489473c053e3ea8d9e034b0032effb1d

If you have any suggestion or a better solution please share it

15 May
4 years ago

messi89 left a reply on Laravel And NuSoap

no,

finaly I use rest api

messi89 left a reply on OAuth2.0 Server Tutorial

you need to add url params in your post request :

grant_type = client_credentials client_id = your_client_id client_secret = your_client_secret

07 Dec
4 years ago

messi89 left a reply on Raw Queries

solved with :

DB::select(DB::raw('SHOW TABLE STATUS WHERE Name = :name'), array('name' => 'prefix_messages'))

messi89 started a new conversation Raw Queries

Hi guys,

How can I execute sql commands without query builder

I try to use

DB::select(DB::raw('SHOW TABLE STATUS WHERE Name = prefix_messages'));
06 Dec
4 years ago

messi89 left a reply on DB InsertGetId()

Yes !

I will try to put the massive insertion on a transaction

Thanks guys :)

messi89 left a reply on DB InsertGetId()

@MThomas with foreach it will generate a big number of queries...it's not a good solution for a massive insertion (too slow)

@bestmomo this solution arn't safe if another script insert to the same table in the same moment

messi89 left a reply on DB InsertGetId()

when I insert a multiple lines

insertID return only the lastid !

messi89 left a reply on DB InsertGetId()

and with massive insertion ?

messi89 started a new conversation DB InsertGetId()

Hi;

I have a question about insertGetId

this method return an array of ids or only the last id ?

Thank you

messi89 left a reply on Massive Insertion With Laravel

I think its ok now

but how can I get the ids of the last insertion ?

messi89 started a new conversation Massive Insertion With Laravel

Hi guys;

I want to insert an array of data to my datatable

my $dataArray looks like :

array(2) {
[0] array(6) {
["destinataire"] "*"
["message"] "*****"
["user_id"] "***"
}
[1] array(6) {
["destinataire"] "*"
["message"] "******"
["user_id"] "*"
}
}

I try to use :

Message::create($dataArray);

but no insertion !!! if I do the insertion with foreach it's work !

any idea to do massive insertion without foreach (with eloquent or fluent)

thanks

11 Nov
4 years ago

messi89 left a reply on DB::table('myTable')->insert Doesn't Add A Correct Timestamps

Ok

so with fluent I need to handle timestamp() fields manualy not like eloquent ?

messi89 left a reply on DB::table('myTable')->insert Doesn't Add A Correct Timestamps

Schema::create('dynamic_name', function($table)
{
    $table->increments('id');

    //foreach to add header title as datatable fields_title
    foreach($myArray as $line) {
        foreach($line as $title=>$value) {
            $table->string(strtolower($title), 160);
        }
        break;
    }

    $table->timestamps();
});

messi89 left a reply on DB::table('myTable')->insert Doesn't Add A Correct Timestamps

@RemiC its doesn't work

SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'created_at'

if I delete timestamp from the data array it work but without a correct timestamp on created_at and updated_at

messi89 left a reply on DB::table('myTable')->insert Doesn't Add A Correct Timestamps

Hi @arabsight because my datatable is temporary and dynamic (dynamic datatable name at creation)

messi89 left a reply on DB::table('myTable')->insert Doesn't Add A Correct Timestamps

@RemiC Yes, this is an exemple with dd($myArray) :

array(2) {
[0] array(8) {
["name"] "lorem"
["title"] "ipsum"
["message"] "Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression"
["user_id"] "1"
["created_at"] "2014-11-11 14:17:21"
["updated_at"] "2014-11-11 14:17:21"
}
[1] array(8) {
["name"] "lorem1"
["title"] "ipsum1"
["message"] "Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression"
["user_id"] "1"
["created_at"] "2014-11-11 14:17:21"
["updated_at"] "2014-11-11 14:17:21"
}
}

messi89 left a reply on DB::table('myTable')->insert Doesn't Add A Correct Timestamps

with

//timestamp
$myArray['created_at']= \Carbon\Carbon::now()->toDateTimeString();
$myArray['updated_at']= \Carbon\Carbon::now()->toDateTimeString();

I have my date + created_at and upadated_at fields (without id field)

messi89 left a reply on DB::table('myTable')->insert Doesn't Add A Correct Timestamps

No,

I didn't set Id field manually sql exception is about created_at and updated_at field

messi89 started a new conversation DB::table('myTable')->insert Doesn't Add A Correct Timestamps

Hi

When I try to add data to my datatable laravel don't create created_at and updated_at correctly (values : 0000-00-00 00:00:00)

DB::table('myTable')->insert($myArray))

I try to add created_at and updated_at to the array manually but I have sql exception due to duplicate rows on my sql request

//timestamp
$myArray['created_at']= \Carbon\Carbon::now()->toDateTimeString();
$myArray['updated_at']= \Carbon\Carbon::now()->toDateTimeString();

messi89 left a reply on Need Help Laravel Command Scheduled

Hi

problem solved like this :

public function schedule(Schedulable $scheduler) {
$schedulerArray = array();
        $comapgnes = Compagne::where('etat', '=', true)->get();
        foreach($comapgnes as $compagne) {
            array_push($schedulerArray, $scheduler->args(array('batch_name' =>$compagne->batch_name)->everyMinutes(1));
        }

        return $schedulerArray;
}
09 Nov
4 years ago

messi89 started a new conversation Need Help Laravel Command Scheduled

Hi;

Can someone tell me how can I add new command to artisan dynamicaly

in my case I have a datatable and I need to fire command (dispatcher) for each line on my datatable

Example : if I have two line on my datatable, I need to fire command two time for each line

Is it possible ?

messi89 started a new conversation Artisan Add New Command With Args (Dispatcher

Hi

How to add argument when I register my scheduled command on artisan.php ?

Thanks

27 Oct
4 years ago

messi89 left a reply on Laravel Scheduler

Im looking to how tell to the dispatcher execute fire() only when a condition is true (for exemple)

messi89 started a new conversation Laravel Scheduler

Hi

I'm looking to add command to scheduler(https://github.com/Indatus/dispatcher) and delete it with my controller (with my own condition not manually) ?

Thanks

23 Oct
4 years ago

messi89 left a reply on Laravel Rest Client

Thanks guys

I will try Guzzle

messi89 left a reply on Laravel Rest Client

Ok guys

Is there any package tu handle requests to an external rest api ?

messi89 left a reply on Laravel Rest Client

Hi,

My installed version is 4.2.11 ''' ~$ php artisan -V Laravel Framework version 4.2.11 ''

messi89 started a new conversation Laravel Rest Client

Hi,

I have problem when I add Laravel RestClient (https://github.com/nathanmac/laravel-restclient) on my composer.json ~~ "nathanmac/laravel-restclient": "dev-master" ~~

~~ composer update Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1 - Conclusion: remove laravel/framework 4.2.x-dev - Conclusion: don't install laravel/framework 4.2.x-dev - Conclusion: don't install laravel/framework v4.2.11 - Conclusion: don't install laravel/framework v4.2.10 - Conclusion: don't install laravel/framework v4.2.9 - Conclusion: don't install laravel/framework v4.2.8 - Conclusion: don't install laravel/framework v4.2.7 - Conclusion: don't install laravel/framework v4.2.6 - Conclusion: don't install laravel/framework v4.2.5 - Conclusion: don't install laravel/framework v4.2.4 - Conclusion: don't install laravel/framework v4.2.3 - Conclusion: don't install laravel/framework v4.2.2 - Installation request for nathanmac/laravel-restclient * -> satisfiable by nathanmac/laravel-restclient[dev-master]. - Conclusion: don't install laravel/framework v4.2.1 - Conclusion: don't install laravel/framework v4.2.0 - nathanmac/laravel-restclient dev-master requires illuminate/support 4.1.* -> satisfiable by laravel/framework[4.1.x-dev], illuminate/support[4.1.x-dev, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.13, v4.1.14, v4.1.15, v4.1.16, v4.1.17, v4.1.18, v4.1.19, v4.1.2, v4.1.20, v4.1.21, v4.1.22, v4.1.23, v4.1.24, v4.1.25, v4.1.26, v4.1.27, v4.1.28, v4.1.29, v4.1.3, v4.1.30, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9]. - don't install illuminate/support 4.1.x-dev|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.0|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.1|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.10|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.11|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.12|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.13|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.14|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.15|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.16|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.17|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.18|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.19|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.2|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.20|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.21|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.22|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.23|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.24|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.25|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.26|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.27|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.28|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.29|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.3|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.30|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.4|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.5|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.6|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.7|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.8|don't install laravel/framework v4.2.0-BETA1 - don't install illuminate/support v4.1.9|don't install laravel/framework v4.2.0-BETA1 - Can only install one of: laravel/framework[v4.2.0-BETA1, 4.1.x-dev]. - Installation request for laravel/framework 4.2.* -> satisfiable by laravel/framework[4.2.x-dev, v4.2.0, v4.2.0-BETA1, v4.2.1, v4.2.10, v4.2.11, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9]. ~~

14 Oct
4 years ago

messi89 started a new conversation Laravel And NuSoap

Hi guys,

Is there anyone tried to implement NuSoap (http://sourceforge.net/projects/nusoap/) with Laravel ?

I try to use it like this but it doesn't work ... Route::get('ws/', function(){ $server = new App\Libraries\soap_server();

//Define our namespace
$namespace = "http://localhost:8000/ws";


//Configure our WSDL
$server->configureWSDL('OverService',$namespace);
$server->wsdl->schemaTargetNamespace = $namespace;
$server->decode_utf8 = true;
$server->soap_defencoding = "UTF-8";

// Register our method
$server->register(
    'sendMessage',
    array('name' => 'xsd:string'),
    array('message' => 'xsd:string'),
    $namespace,
    $namespace,
    'rpc',
    'encoded',
    'sendMessage service'
);

function sendMessage($name) {
    return "Hi ".$name;
}

$server->service(file_get_contents("php://input"));

}); ...

28 Sep
4 years ago

messi89 left a reply on Laravel And SOAP WSDL

I need soap because client app will be on .net (better and simple use with wsdl)

messi89 left a reply on Laravel And SOAP WSDL

Hi,

Thanks for your answer but I'm looking for soap server not client

messi89 started a new conversation Laravel And SOAP WSDL

Hi guys,

Is there any library to use soap server/wsdl with laravel ?

Thanks

24 Sep
4 years ago

messi89 started a new conversation OAuth2.0 Server Tutorial

Hi guys,

I'm looking for a tutorial or a complete example to use this package https://github.com/lucadegasperi/oauth2-server-laravel

Thanks