rin4ik

Full-stack developer at Develax

Hire Me

Experience

177,520

164 Best Reply Awards

  • Member Since 1 Year Ago
  • 672 Lessons Completed
  • 44 Favorites

22nd May, 2018

rin4ik left a reply on Pass Variable By Controller • 1 hour ago

 public function dashboard(Request $request)
    {
        
        $aguardandoRecebimento = 21;
        $aguardandoAvaliacao = 126;
        $aguardandoAprovacao = 6;
        $aguardandoExecucao = 121;
return view('pages.recebimento.dashboard',compact('aguardandoRecebimento','aguardandoAvaliacao','aguardandoAprovacao','aguardandoExecucao'));
    }

View

<h1 class="font-light">20  {{$aguardandoRecebimento ?? 22}} </h1>

rin4ik left a reply on After Login Again Redirects To Login Without Any Errors • 1 hour ago

try to run php artisan config:cache

21st May, 2018

rin4ik left a reply on Pass Variable By Controller • 21 hours ago

```

your code here

```

rin4ik left a reply on Why Error Message Even With Nullable Laravel 5.6 ? • 23 hours ago

Schema::create('posts', function (Blueprint $table) 
{
     $table->increments('id');
     $table->string('asnumber'); 
     $table->string('peeringrs');
     $table->string('peeringdb')->nullable();
     $table->string('asset')->nullable();
     $table->string('contact');
     $table->timestamps();
 };

and if it's needed add other nullable fields . run after php artisan migrate:fresh

rin4ik left a reply on Why Error Message Even With Nullable Laravel 5.6 ? • 1 day ago

show your migration for posts

20th May, 2018

rin4ik left a reply on Access Denied For User 'root'@'localhost' • 1 day ago

change password to this

DB_PASSWORD=

18th May, 2018

rin4ik left a reply on After Move To New Host "The Page Has Expired Due To Inactivity."? • 3 days ago

php artisan config:cache

17th May, 2018

rin4ik left a reply on Hot Reloading Not Creating Any Files • 5 days ago

please use npm run watch and install browsersync package that's what you need.

16th May, 2018

rin4ik left a reply on Hot Reloading Not Creating Any Files • 5 days ago

when you first want to those files run npm run dev after that file created use npm run hot and work

rin4ik left a reply on Hot Reloading Not Creating Any Files • 5 days ago

use them instead npm run hot

rin4ik left a reply on "Undefined Index: Token" Error On Password Reset. • 5 days ago

maybe like this?

 '_token' => 'required',

rin4ik left a reply on Hot Reloading Not Creating Any Files • 5 days ago

did you try with npm run watch?

rin4ik left a reply on Undefined Variable $errors In Register.blade.php • 5 days ago

can you elaborate your problem?

rin4ik left a reply on Form Validation Only For Some Parameters ?? • 5 days ago

in blade after those fields put them

 @if ($errors->has('ASNumber'))
                                    <span class="invalid-feedback">
                                        <strong>{{ $errors->first('ASNumber') }}</strong>
                                    </span>
 @endif 
 @if ($errors->has('contact'))
                                    <span class="invalid-feedback">
                                        <strong>{{ $errors->first('contact') }}</strong>
                                    </span>
 @endif 

rin4ik left a reply on Problem In App Service Provider • 5 days ago

just run php artisan migrate

14th May, 2018

rin4ik left a reply on Bootstrap Panel Don't Work • 1 week ago

@lostdreamer_nl lol why are you changing your answer ? shame on you

rin4ik left a reply on Bootstrap Panel Don't Work • 1 week ago

@YuriiYashchenko because laravel 5.6 uses bootstrap 4. change to card instead of panel https://getbootstrap.com/docs/4.0/migration/#panels-thumbnails-and-wells

rin4ik left a reply on WhereIn Array To Array (or Statement) • 1 week ago

yes . I don't understand what you mean. maybe this

$collection = collect([
    ['product' => 'Desk', 'price' => [200, 400]],
    ['product' => 'Chair', 'price' => [200, 450],
    ['product' => 'Bookcase', 'price' => [100, 400],
    ['product' => 'Door', 'price' => [240, 400],
]);

$filtered = $collection->whereIn('price', [240, 450]);

$filtered->first();

/*
    [
        ['product' => 'Chair', 'price' => [200, 450],
        ]
*/

rin4ik left a reply on FileNotFoundException($path); • 1 week ago

@abudo where is your form for uploading an image ? did you include enctype= multipart/form-data to your form?

rin4ik left a reply on WhereIn Array To Array (or Statement) • 1 week ago

like this ?

$collection = collect([
    ['product' => 'Desk', 'price' => 200],
    ['product' => 'Chair', 'price' => 100],
    ['product' => 'Bookcase', 'price' => 150],
    ['product' => 'Door', 'price' => 100],
]);

$filtered = $collection->where('price', 100);

$filtered->all();

/*
    [
        ['product' => 'Chair', 'price' => 100],
        ['product' => 'Door', 'price' => 100],
    ]
*/

rin4ik left a reply on Failed To Load Resource: The Server Responded With A Status Of 500 (Internal Server Error) In SaveProduct • 1 week ago

with this? u don't need to specify created_at field laravel automatically set that

$add_product = Product::create([
       'pro_name' => $pro_name,
       'pro_code' => $pro_code,
       'pro_price' => $pro_price,
      ]);

rin4ik left a reply on Error In Edit • 1 week ago

```

your code here

```

13th May, 2018

rin4ik left a reply on How To Use With() Method With Where() • 1 week ago

It's all explained in the Laravel documentation - https://laravel.com/docs/5.6/eloquent-relationships (see the section titled "Querying Relationship Existence") i.e. whereHas and doesntHave.

rin4ik left a reply on Solved • 1 week ago

great

rin4ik left a reply on Access Denied For User 'root'@'localhost' • 1 week ago

your db credentials are incorrect. check the .env file

12th May, 2018

rin4ik left a reply on File Put Contents No Such File (cache) • 1 week ago

try php artisan cache:clear

rin4ik left a reply on Cant Make Composer Dump-auto Load Also My Laravel App Has Been Crashed • 1 week ago

@ahmad_freijeh do you want to use that package? maybe u are using git branches and switching between them and it causes the errors like above?

11th May, 2018

rin4ik left a reply on Session Flash Message Remains When Going Back Using Browser • 1 week ago

try this

@if (Session::has('message'))
    <div id="welkomBericht">
            {{ Session::get('message')}}
    </div>

    <script>
    $(function(){
        setTimeout(function() {
            $('.fade-message').slideUp();
        }, 5000);
    });
    </script>
@endif 

10th May, 2018

rin4ik left a reply on How Pass Variable To Flash Messages Without Concatenating • 1 week ago

what's wrong with concatenating?

rin4ik left a reply on Route [login] Not Defined. • 1 week ago

@staticcode are you using this?

Auth::routes();

run php artisan route:list and check do you have route with name login . middleware trying to redirect you to route named login but can't find

rin4ik left a reply on Route [login] Not Defined. • 1 week ago

make name for your route

Route::get('/login', '[email protected]')->name('login');

rin4ik left a reply on InvalidArgumentException Route [login] Not Defined. • 1 week ago

with this?

Route::post('/login', '[email protected]')->name('login');

rin4ik left a reply on Session Loging Out • 1 week ago

try to sign in with remember me

rin4ik left a reply on How To Create Path To Assets Folder • 1 week ago

style="background-image: url('/assets/frontend/images/players/1.png')"

rin4ik left a reply on How To Create Path To Assets Folder • 1 week ago

<img src="{{asset('assets/frontend/images/players/1.jpg')}}" alt="location-team">

rin4ik left a reply on RouteServiceProvider • 1 week ago

@MoFish you're welcome :)

rin4ik left a reply on Config:cache Cant Access Storage Folder: Failed To Open Stream • 1 week ago

try php artisan config:clear and composer dumpautoload

rin4ik left a reply on BelongsTo - Help Me Wrap My Head Around This Please • 1 week ago

u don't need pivot table at all. just include user_id to your articles migration

class CreateArticlesTable extends Migration 
{
 /** * Run the migrations. * * @return void */ 
public function up() 
{
 Schema::create('articles', function (Blueprint $table) 
{
$table->increments('id');
$table->integer('user_id'); 
$table->string('title',50);
 $table->string('subheader',100);
 $table->text('body'); 
$table->string('image_url')->default('default.png');
 $table->string('article_tags')->nullable();
 $table->timestamps(); 
$table->softDeletes();
 }

rin4ik left a reply on Checkbox Toggle Value Not Returning • 1 week ago

v-model="statuses"

rin4ik left a reply on SQLSTATE[42000]: Syntax Error Or Access Violation: 1067 Invalid Default Value For 'dates' • 1 week ago

@salomon022 don't forget if you use date() or carbon() your date always will be static like @tykus said .

rin4ik left a reply on BelongsTo - Help Me Wrap My Head Around This Please • 1 week ago

@Cigoler show your article migration please

rin4ik left a reply on RouteServiceProvider • 1 week ago

give it a try :)

protected function mapWebRoutes()
Route::get($page->uri, ['as' => $page->name, function () use($page) {
                return $this->app->call('App\Http\Controllers\[email protected]', [
                    'page' => $page,
                    'parameters' => Route::current()->parameters()
                ]);
            }]);

rin4ik left a reply on RouteServiceProvider • 1 week ago

protected function mapWebRoutes(Router $router)
 $router->get($page->uri, ['as' => $page->name, function () use ($page, $router)  {

rin4ik left a reply on SQLSTATE[42000]: Syntax Error Or Access Violation: 1067 Invalid Default Value For 'dates' • 1 week ago

with this?

$table->timestamp('dates')->default(DB::raw('CURRENT_TIMESTAMP'));

rin4ik left a reply on RouteServiceProvider • 1 week ago

use page and router

 Route::get($page->uri, ['as' => $page->name, function () use ($page, $router)  {
Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.