The module user by default redirect to "/" allways because is in the Auth controller.
I change redirect()->intended('/') to redirect()->intended('/backend'), and that's work fine for me. The function postLogin not check the config file, that's the problem.
mjsorribas
@mjsorribas
Posts made by mjsorribas
-
RE: Redirect problem after login
-
Redirect problem after login
Hi, i have this problem with asgard 1.x , when i login to the backend , the system redirecte me to web homepage allways. How can i change this to redirectme to backend dashboard?
-
RE: How to get user id in module form view ?
I found it! in this post. In the documentation the information is not clear.
In the controller,inside the functions create & edit i wrote:
$auth = app(Authentication::class);
$userid = $auth->check();
return(blabla....,compact('userid'))Then in the view i used this variable:
$userid->id
and everythings works fine. -
How to get user id in module form view ?
Hi, need to know How to get user id in module form view in Asgard V1? Somebody have any idea?.
-
RE: How i get blog categories and tags?
Hi, i talk about the front end, not the backend.
-
RE: New Modules show up weird in Sidebar
Hi, the same thing happens to me. I had to create the abcs.php.
-
RE: Error when use media single in my module
Thanks, that is one of the problems. i resolved with this:
<?php namespace Modules\Partner\Entities;
//use Dimsav\Translatable\Translatable;
use Illuminate\Database\Eloquent\Model;
class Partner extends Model
{
// use Translatable;
protected $table = 'partner__partners';
// public $translatedAttributes = [];
protected $fillable = ['company','website','banner_url','order'];And i created inside "media module" another media partial view called "new-file-link-single-urlget.blade" with line 38 changed:
'<input type="hidden" name="'+ window.mediaZone +'" value="' + filePath + '">' +
With this i get the mediumThumb file url directly to save without "Events/uploadEvent", only take url from "media".
Mayby is not the best option but works to save url of the file perfect. -
RE: Error when use media single in my module
Hi, this is my partner entity
<?php namespace Modules\Partner\Entities;use Dimsav\Translatable\Translatable;
use Illuminate\Database\Eloquent\Model;class Partner extends Model
{
use Translatable;protected $table = 'partner__partners'; public $translatedAttributes = []; protected $fillable = [];
}
and this is the PartnerTranslation
<?php namespace Modules\Partner\Entities;
use Illuminate\Database\Eloquent\Model;
class PartnerTranslation extends Model
{
public $timestamps = false;
protected $fillable = [];
protected $table = 'partner__partner_translations';
}I don't touch it , It's created by scaffold.
May by the problem is i don't have partner__partner_translations migration file. -
Error when use media single in my module
Hi, i'm try to use media for upload single file.
In my table i have 3 Field : company, website, and banner_url for the image.
I'm follow the instructions of @armababy in the topic /topic/127/unable-to-upload-save-image
In the form i can select the image and i see thumbnailed in the form.
When a press the save button this error appears:
MassAssignmentException in Model.php line 424:
_token
in Model.php line 424
at Model->fill(array('_token' => 's8bFHQShH9gmlvjwJWPYMos4xOmOhe3648qI6J8W', 'company' => 'test company', 'website_url' => 'www.testcompany.com', 'medias_single' => array('banner_url' => '1'))) in Translatable.php line 276
Somebody help me please?
Thanks -
How i get blog categories and tags?
Hi, i created a site with asgard, i installed the blog module.
In my theme i can show post and $lastestposts, but how i get the categories and tags with slugs to show ?
I can't do it because is not in the Documentation.
Any can help me?Thanks.