skip to Main Content

Use Laravel 7 HTTP client and OAuth Subscriber – Twitter API

I'm actually using Guzzle and Guzzle OAuth Subscriber https://github.com/guzzle/oauth-subscriber to post a tweet via the Twitter api. My code looks like this : $stack = HandlerStack::create(); $middleware = new Oauth1([ 'consumer_key' => config('services.twitter.client_id'), 'consumer_secret' => config('services.twitter.client_secret'), 'token' => $this->user->twitter->token, 'token_secret'…

VIEW QUESTION

migrate command in laravel – Phpmyadmin

articles table public function up() { Schema::create('Articles', function (Blueprint $table) { $table->bigIncrements('id'); $table->integer('user_id')->unsigned(); $table->string('title'); $table->string('body'); $table->timestamps(); $table->foreign('user_id')->references('id') ->on('users')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('Articles'); } tags table public function…

VIEW QUESTION
Back To Top
Search