Shahin

Software Engineer at Business Automation Ltd.

Member Since 4 Years Ago

Dhaka Bangladesh

Experience Points
8,420
Total
Experience

1,580 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
71
Lessons
Completed
Best Reply Awards
0
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.

Level 2
8,420 XP
Dec
19
3 years ago
Activity icon

Started a new Conversation PHP Fileinfo Extension Must Be Installed/enabled At Shared Hosting

"PHP Fileinfo extension must be installed/enabled to use Intervention Image " showing this error message when I upload image on my shared hosting. So, I modified my php.ini file using .htaccess file.

Now my .htaccess file looks like,

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/username/public_html/subfolder
</IfModule>

</IfModule>

subfolder is the laravel project where I want to serve my application.

php.ini file in my subfolder's root folder & for enable PHPFileinfo I write those code in php.ini file

extension=fileinfo.so
extension=pdo.so
extension=pdo_mysql.so

And finally it doesn't work in my shared hosting!! :(

How can I solve it?

Nov
30
3 years ago
Activity icon

Replied to How To Delete A File Or A Photo From The Folder When Deleting It From Database?

If you want to delete specific file from folder you can do it by this destroy function.

 public function destroy($id)
{
        $image = \DB::table('files')->where('id', $id)->first();
        $file= $image->your_file_path;
        $filename = public_path().'/uploads_folder/'.$file;
        \File::delete($filename);
 }
Nov
05
3 years ago
Activity icon

Replied to Laravel Deployment

@WPS2 , Yap, I got the same things & want to sharing with you :) But you have already solution for this, great man!

Nov
01
3 years ago
Activity icon

Replied to Laravel Deployment

@WPS2 Problem solved?

Oct
31
3 years ago
Activity icon

Replied to Laravel Deployment

@WPS2 I strongly agree with you :)

Activity icon

Replied to Laravel Deployment

APP_ENV=local is right. anyway post your question on stackoverflow :)

Activity icon

Replied to Laravel Deployment

Well this depends on how you installed it, I think it's your server problem. configure it correctly. check your server version cause of many dependency in server :(

Activity icon

Replied to Laravel Deployment

ok, never mind please check it..like

Route::post('/register', function () {
return 1;
});
Activity icon

Replied to Laravel Deployment

Ok, Another route working properly?

Activity icon

Replied to Laravel Deployment

Ok, At first change the form

<form id="registration" name="registration" action="/register" method="post">

To 

{!! Form::open(['url' => '/register', 'id' => 'registration', 'role' => 'form']) !!}
{!! Form::close() !!}

and remove {!! csrf_field() !!} and for my better understand please tell me details which controller system r u used? Implicit Controllers ?

Like?

Route::controller('register', 'RegisterController');
Activity icon

Replied to Laravel Deployment

Yap, It's better you write blade syntax. Specially for External files && link/menu.

Activity icon

Replied to Laravel Deployment

Ok, Firstly it's better to u use blade syntex for link your external file otherwise some remote server occur problems for this. Like

HTML::style('theme.css')

anyway, Which syntax you used to link your route?

Like:

<a href="some-route">A link</a>
or 
{{URL::to('some-route')}}
Activity icon

Replied to Laravel Deployment

Which way u used to link your external css/js file ? Like :

<link rel="stylesheet" type="text/css" href="theme.css">
or 
HTML::style('theme.css')
Activity icon

Replied to Laravel Authentication Failing In IE

:p, Well this depends on how you installed it, I think it's your server problem. configure it correctly. check your server version cause of many dependency in server :(

Activity icon

Replied to Laravel Authentication Failing In IE

Never mind Ubuntu 14.04 is a OS :) Not server, Anyway Lampp or nginx?

Activity icon

Replied to Prevent Sweet Alert From Loading On Refresh.

Are you used condition before load sweetalert script?

Activity icon

Replied to Laravel Authentication Failing In IE

Which server are you used?

Oct
29
3 years ago
Activity icon

Replied to Need Help Controller

Why do you want to do this? tell me details?

Activity icon

Replied to TokenMismatchException In VerifyCsrfToken.php Line 46:

Try this :

{!! Form::open(['url' => '/todo', 'class' => 'form-horizontal', 'role' => 'form']) !!}
{!! Form::close() !!}
Activity icon

Replied to My Project Can't Run On Nginx And PHP7

@jlrdw My project run perfectly on Apache2. I think my code is right way :) I get error when I run project on Nginx && php7 rc6

Activity icon

Started a new Conversation My Project Can't Run On Nginx And PHP7

When I run my project it showing this errors :

Fatal error: Uncaught ReflectionException: Class log does not exist in C:\nginx\html\laravel-todo\vendor\laravel\framework\src\Illuminate\Container\Container.php:737 Stack trace: #0 C:\nginx\html\laravel-todo\vendor\laravel\framework\src\Illuminate\Container\Container.php(737): ReflectionClass->__construct('log') #1 C:\nginx\html\laravel-todo\vendor\laravel\framework\src\Illuminate\Container\Container.php(627): Illuminate\Container\Container->build('log', Array) #2 C:\nginx\html\laravel-todo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(674): Illuminate\Container\Container->make('log', Array) #3 C:\nginx\html\laravel-todo\vendor\laravel\framework\src\Illuminate\Container\Container.php(838): Illuminate\Foundation\Application->make('log') #4 C:\nginx\html\laravel-todo\vendor\laravel\framework\src\Illuminate\Container\Container.php(801): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter)) #5 C:\nginx\html\laravel-todo\vendor\laravel\framework\src\Illuminate\Container\Container.php(7 in C:\nginx\html\laravel-todo\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 737

how can I solve it?

Oct
21
3 years ago
Activity icon

Started a new Conversation Multiple Database Connection Failed, PDOException In Connector.php Line 47 SQLSTATE[HY000] [2002] A Connection Attempt Failed

Hi, I want to show simply users table info it get form my localhost and different variable show remote server users table info . I write the code example here :

In my Config/database.php:


        'shahin' => [
            'driver'    => 'mysql',
            'host'      => env('DB_HOST', '104.219.248.3'),
            'database'  => env('DB_DATABASE', 'laraveldb'),
            'username'  => env('DB_USERNAME', 'laraveldb_username'),
            'password'  => env('DB_PASSWORD', 'secret'),
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => '',
            'strict'    => false,
        ],

Route.php :

Route::get('mpdb',function(){

// Makeing an object of second DB.             
$users2 = DB::connection('shahin');
// Getting data with second DB object.
$u = $users2->table('users')->get();
echo "<pre>";
print_r($u);


});

Local Database work's properly but Remote database get error!!

ERROR :

PDOException in Connector.php line 47:
SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Oct
15
4 years ago
Activity icon

Started a new Conversation I Need To Repeat The Table Heading On Every Printable Page With Jquery Datatable On Chrome?

In my page.blade.php I have a jQuery Datatable. Now I need to repeating table head every pages when I print the report. I've tried by using this

@media print { thead {display: table-header-group;} }

But I can't. Please tell me how can I add this in my project on every printable datatable reports? Now this table header showing on only top page (page one) when I print it, it doesn't showing other pages!!

Oct
13
4 years ago
Activity icon

Replied to How To Get Objective From URL?

Ok got it. @JeroenVanOort Thank you for helping :)

Activity icon

Replied to How To Get Objective From URL?

Actually I like to get it from route.php. anyway Now I want to get it from my myController.php when I Enter this URL http://localhost:8888/simplicityWanted/resume/editor/9#objective and I need to get this objective section in myController.php but I can't it. cause of Actually I can't get it in route.php

Activity icon

Replied to How To Get Objective From URL?

There haven't any other way to send it? Like javascript.

Activity icon

Started a new Conversation How To Get Objective From URL?

Here is my URL : http://localhost:8888/simplicityWanted/resume/editor/9#objective How can I get objective section form url in my route.php?