Shahin

Software Engineer at Business Automation Ltd.

Hire Me

Experience

8,120

0 Best Reply Awards

  • Member Since 2 Years Ago
  • 69 Lessons Completed
  • 5 Favorites

19th December, 2015

Shahin started a new conversation PHP Fileinfo Extension Must Be Installed/enabled At Shared Hosting • 1 year ago

"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/notificamos/public_html/shahin
</IfModule>

</IfModule>

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

php.ini file in my shahin 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 not work's in my shared hosting!! :(

How can I solve it?

30th November, 2015

Shahin left a reply on How To Delete A File Or A Photo From The Folder When Deleting It From Database? • 1 year ago

Just do it if you want to delete specific file

 $image = DB::table('files')->where('id', $id)->first();
        $file= $image->your_file_path;
        $filename = public_path().'/uploads/'.$file;
        \File::delete($filename);

5th November, 2015

Shahin left a reply on Laravel Deployment • 1 year ago

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

1st November, 2015

Shahin left a reply on Laravel Deployment • 1 year ago

@WPS2 Problem solved?

31st October, 2015

Shahin left a reply on Laravel Deployment • 1 year ago

@WPS2 I strongly agree with you :)

Shahin left a reply on Laravel Deployment • 1 year ago

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

Shahin left a reply on Laravel Deployment • 1 year ago

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 :(

Shahin left a reply on Laravel Deployment • 1 year ago

ok, never mind please check it..like

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

Shahin left a reply on Laravel Deployment • 1 year ago

Ok, Another route work's properly?

Shahin left a reply on Laravel Deployment • 1 year ago

:) ok check out this man.. I think it's your route problem not your server :)

Shahin left a reply on Laravel Deployment • 1 year ago

Ok, At first change the form

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

To 

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

Shahin left a reply on Laravel Deployment • 1 year ago

Yap, It's better you write blade syntax.

Shahin left a reply on Laravel Deployment • 1 year ago

Ok, Which syntax you used to link your route?

Like:

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

Shahin left a reply on Laravel Deployment • 1 year ago

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')

Shahin left a reply on Laravel Deployment • 1 year ago

which syntax u used to link css,js Like : HTML::style('main.css');

Shahin left a reply on Laravel Authentication Failing In IE • 1 year ago

You can mark it best answer :D

Shahin left a reply on Laravel Authentication Failing In IE • 1 year ago

:p, I think it's your server problem. configure it correctly. check your server version cause of many dependency in server :(

Shahin left a reply on Laravel Authentication Failing In IE • 1 year ago

Lampp or nignx?

Shahin left a reply on Prevent Sweet Alert From Loading On Refresh. • 1 year ago

Are you used condition before load sweetalert script?

Shahin left a reply on Laravel Authentication Failing In IE • 1 year ago

Which server are you used?

Shahin left a reply on Working Projects On Github • 1 year ago

if you want to learn github you can follow links : http://inspire-shahinbd.rhcloud.com/

Shahin left a reply on Git Clone Problem - BitBucket • 1 year ago

@isoto , I think you can get idea form here http://inspire-shahinbd.rhcloud.com/say_hi_to_git/

29th October, 2015

Shahin left a reply on Need Help Controller • 1 year ago

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

Shahin left a reply on TokenMismatchException In VerifyCsrfToken.php Line 46: • 1 year ago

Try this :

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

Shahin left a reply on My Project Can't Run On Nginx And PHP7 • 1 year ago

@jlrdw My project run perfectly on Apache2. I think my code is right way :)

Shahin started a new conversation Laravel Project Can't Run On Nginx And PHP7 • 1 year ago

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

21st October, 2015

Shahin started a new conversation PDOException In Connector.php Line 47 • 1 year ago

Hi, I am trying to connect remote database from my localhost, the cause of I want to store data localhost to remote server. Now I want to show simply users table in my localhost and different variable show remote server users table. I write the code example here :

In my Config/database.php:

'mysql' => [
            'driver'    => 'mysql',
            'host'      => env('DB_HOST', 'localhost'),
            'database'  => env('DB_DATABASE', 'realstate'),
            'username'  => env('DB_USERNAME', 'root'),
            'password'  => env('DB_PASSWORD', ''),
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => '',
            'strict'    => false,
        ],

        '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 :

$userArray = DB::table('users')->get();
echo "<pre>";
print_r($userArray);
echo "</pre><br>";

// 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!!

15th October, 2015

Shahin started a new conversation How To Repeating HTML Table Headers On Each Printed Page On Jquery Datatable? • 1 year ago

In my page.blade.php I have a jQuery Datatable. Now I need to Repeating table Header every pages when I print the report. I tried by Used this

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

But I can't? Please tell me how can I add this in my project every datatable reports?

13th October, 2015

Shahin left a reply on How To Get Objective From URL? • 1 year ago

Ok got it. @JeroenVanOort

Shahin left a reply on How To Get Objective From URL? • 1 year ago

Actually I like to get it from route.php. anyway Now I want to get it from my view.blade.php :)

Shahin left a reply on How To Get Objective From URL? • 1 year ago

Here is any other way to send it?

Shahin started a new conversation How To Get Objective From URL? • 1 year ago

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

Edit Your Profile
Update

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